MSBuildSdks
MSBuildSdks copied to clipboard
Parallel pack is broken in some scenarios
- Extract the attached archive.
- Navigate to "TraversalWithPack\build" folder.
- Run the followin command, build succeeds:
msbuild /flp:v=diag /t:pack build-all.proj
- Run the followin command, build fails:
msbuild /m /flp:v=diag /t:pack build-all.proj
I get an error about trying to build a solution file from a Traversal project.
D:\Temp\repro-temp\TraversalWithPack\build>msbuild /bl /restore /clp:v=m;summary;forcenoalign /nr:false /m build.proj /t:pack
Microsoft (R) Build Engine version 17.1.0-preview-21623-01+11081a235 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files\Visual Studio 2022 Preview\MSBuild\Current\Bin\amd64\msbuild.exe /bl /clp:v=m;summary;forcenoalign /m /nr:false /restore /t:pack build.proj
Determining projects to restore...
Skipping project "D:\Temp\repro-temp\TraversalWithPack\TraversalWithPack.sln.metaproj" because it was not found.
C:\Program Files\Visual Studio 2022 Preview\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(339,5): error MSB3202: The project file "D:\Temp\repro-temp\TraversalWithPack\TraversalWithPack.sln.metaproj" was not found. [D:\Temp\repro-temp\TraversalWithPack\build\build.proj]
Build FAILED.
C:\Program Files\Visual Studio 2022 Preview\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(339,5): error MSB3202: The project file "D:\Temp\repro-temp\TraversalWithPack\TraversalWithPack.sln.metaproj" was not found. [D:\Temp\repro-temp\TraversalWithPack\build\build.proj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.67
This is not supported by MSBuild to have a Traversal project have a ProjectReference
to a Visual Studio solution file as far as I know.
Works just fine for build and rebuild targets.