Open LoungeFlyZ opened 6 years ago
What error are you getting? Your repro appears to work for me (I'm on a 15.9 internal build so it's possible something has changed but MSBuild itself hasn't yet):
1>------ Rebuild All started: Project: LibA, Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: LibC, Configuration: Debug Any CPU ------
2>LibC -> S:\repro\Microsoft\msbuild\issues\3641\LibC\bin\Debug\net452\LibC.dll
1>LibA -> S:\repro\Microsoft\msbuild\issues\3641\LibA\bin\Debug\net452\LibA.dll
2>LibC -> S:\repro\Microsoft\msbuild\issues\3641\LibC\bin\Debug\netstandard2.0\LibC.dll
3>------ Rebuild All started: Project: Lib452, Configuration: Debug Any CPU ------
1>LibA -> S:\repro\Microsoft\msbuild\issues\3641\LibA\bin\Debug\netstandard2.0\LibA.dll
4>------ Rebuild All started: Project: App, Configuration: Debug Any CPU ------
3>Lib452 -> S:\repro\Microsoft\msbuild\issues\3641\Lib452\bin\Debug\net452\Lib452.dll
4>App -> S:\repro\Microsoft\msbuild\issues\3641\App\bin\Debug\net452\App.exe
3>Lib452 -> S:\repro\Microsoft\msbuild\issues\3641\Lib452\bin\Debug\netstandard2.0\Lib452.dll
4>App -> S:\repro\Microsoft\msbuild\issues\3641\App\bin\Debug\netcoreapp2.1\App.dll
========== Rebuild All: 4 succeeded, 0 failed, 0 skipped ==========
Thanks @rainersigwald ... here is what I get. Weirdly this happens after a Clean, then a Rebuild. Right after the rebuild if i just do another Build it completes.
1>------ Build started: Project: LibA, Configuration: Debug Any CPU ------
2>------ Build started: Project: LibC, Configuration: Debug Any CPU ------
2>LibC -> C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\LibC\bin\Debug\netstandard2.0\LibC.dll
1>LibA -> C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\LibA\bin\Debug\netstandard2.0\LibA.dll
2>LibC -> C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\LibC\bin\Debug\net452\LibC.dll
3>------ Build started: Project: Lib452, Configuration: Debug Any CPU ------
1>CSC : error CS0006: Metadata file 'C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\Lib452\bin\Debug\net452\Lib452.dll' could not be found
1>Done building project "LibA.csproj" -- FAILED.
4>------ Build started: Project: App, Configuration: Debug Any CPU ------
4>CSC : error CS0006: Metadata file 'C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\Lib452\bin\Debug\net452\Lib452.dll' could not be found
4>CSC : error CS0006: Metadata file 'C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\LibA\bin\Debug\net452\LibA.dll' could not be found
4>Done building project "App.csproj" -- FAILED.
3>Lib452 -> C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\Lib452\bin\Debug\netstandard2.0\Lib452.dll
3>Lib452 -> C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\Lib452\bin\Debug\net452\Lib452.dll
4>App -> C:\Users\hyperfishadmin\Documents\Visual Studio 2017\Projects\testapp\App\App\bin\Debug\netcoreapp2.1\App.dll
========== Build: 2 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
In a solution that has a project with a conditional projectreference in one of the projects VS builds fail for me, but
dotnet build
doesn't.Steps to reproduce
Here is a sample solution: App.zip
Expected behavior
VS build should succeed the same way dotnet build does
Actual behavior
VS build seems to fail with conditional itemgroups and project references.
Environment data
msbuild /version
output:dotnet --info
output: