Graphviz.NetWrapper icon indicating copy to clipboard operation
Graphviz.NetWrapper copied to clipboard

Changing project order in solution makes the build fail

Open chtenb opened this issue 4 years ago • 7 comments

https://github.com/Rubjerg/Graphviz.NetWrapper/pull/33 reproduces the issue.

This problems only occurs when executing MSBuild Rubjerg.Graphviz.sln from the commandline (Developer Command Prompt for VS 2019). From within Visual Studio the build always succeeds. MSBuild version is the newest: 16.8.3.61104

chtenb avatar Feb 24 '21 15:02 chtenb

Project build order on master according to VS: image On PR: image

chtenb avatar Feb 24 '21 15:02 chtenb

Top lines of diff of build logs image

chtenb avatar Feb 25 '21 09:02 chtenb

Issue filed: https://github.com/dotnet/project-system/issues/6988

chtenb avatar Feb 25 '21 09:02 chtenb

Issue has been moved: https://github.com/dotnet/msbuild/issues/6198

chtenb avatar Mar 02 '21 09:03 chtenb

Related issue: https://github.com/dotnet/msbuild/issues/1054 With fix: https://github.com/dotnet/msbuild/pull/6622

chtenb avatar Jul 10 '21 14:07 chtenb

See if https://github.com/dotnet/msbuild/issues/9709 is related

KirillOsenkov avatar Feb 03 '24 04:02 KirillOsenkov

Hello, I've created a fix PR for the issue with some comments. Probably not necessary to merge, however since it isn't fix related to changing MSBuild code but rather to working with the .csproj files, this was the only place to put it to give it visibility.

My analysis of the solution and why I think it works is within the PR.

SimaTian avatar Jan 09 '25 11:01 SimaTian