Skip to content

MSBuild target incorrect framework when using project dependencies to enforce build order #2191

Description

@lennoncork

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions