Open OdeToCode opened 4 years ago
Can confirm this still fails, albeit with a different issue: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
.
Some brief investigation notes:
The codepaths end up trying to resolve using the default resolver and using the MSBuildSDKsPath: C:\src\msbuild\artifacts\bin\MSBuild\Debug\net7.0\Sdks
. That's because our buildenvironmenthelper's MSBuildSDKsPath
is defaulted to its current directory + \Sdk\
.
Looks like we'd need to special case if we're in the repo's artifacts dir, or use another sdk resolver other than default.
Steps to reproduce
1) Ran
build.cmd /p:CreateBootstrap=true
- build was successful on the master branch. 2) Moved to a new folder and randotnet new console
using the .NET Core 3.1.100 SDK 3) Randotnet [repohome]\artifacts\bin\bootstrap\netcoreapp2.1\MSBuild\MSBuild.dll TestM.csproj
Result:
Project file