Closed deepchoudhery closed 1 year ago
You only have a .NET 7 SDK installed, and it can't be used by an app running on the .NET 6 runtime, because the SDK uses features of the new runtime. You may wish to configure your app for major-version runtime rollforward so that it runs on the highest runtime version available to avoid this, or target your app to net7.0
.
Hmm reread your comment. Will investigate a lil bit and get back to you.
Closing. Makes sense but since removed dependency for MsBuildLocator.
Get the following error message:
Used
MSBuildLocator.QueryVisualStudioInstances()
to see if any visual studio instances were found but empty.Not an issue with previous .NET 7 preview sdks and also not an issue if another SDK is installed (.NET 7 Preview or .NET 6). Only an issue if this newest .NET 7 Preview 7 sdk is used standalone.
Also tried to pass the MSBuild.exe path using MSBuildLocator.RegisterMSBuildPath and passed the MSBuild.exe from the installed solo VS instance and that seemed to have no issues.
Used in the dotnet/Scaffolding codebase here