MSBuild target incorrect framework when using project dependencies to enforce build order
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 139
Description
I have a solution that has multiple projects. Most of the projects are targeting multiple frameworks using the new .csproj format and one of them is only targeting a single framework (net 4.6.1). If you set up build order MSBuild attempts to build the referenced project with (what appears to be) the wrong target framework.
When building from within Visual Studio everything works fine.
When building with MSBuild (MSBuild.exe" /t:rebuild) on the command line the build fails.
The impact is we can't build on our CI server.
Attached is a test project.
[ResharperTests.zip](https://github.com/Microsoft/msbuild/files/1059435/ResharperTests.zip)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.