dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
https://docs.microsoft.com/visualstudio/msbuild/msbuild
MIT License
5.22k stars 1.35k forks source link

Net472 bootstrap created by dotnet build is incomplete #9767

Open ladipro opened 8 months ago

ladipro commented 8 months ago

Issue Description

On Windows, build -msbuildEngine dotnet creates a net472 bootstrap environment but this environment is incomplete as it's composed only of pieces available in the .NET SDK.

Steps to Reproduce

  1. build -msbuildEngine dotnet
  2. artifacts\bin\bootstrap\net472\MSBuild\Current\Bin\amd64\MSBuild.exe \temp\net8consoleapp

Expected Behavior

Simple .NET app builds fine.

Actual Behavior

error : Could not resolve SDK "Microsoft.NET.SDK.WorkloadAutoImportPropsLocator"

Notes

          Ah, that's unfortunate. Completely fine for now but let's file a bug for follow-up?

_Originally posted by @rainersigwald in https://github.com/dotnet/msbuild/pull/9735#discussion_r1496458323_

AR-May commented 8 months ago

Team triage: Let's not produce Net472 bootstrap in this case.