[Bug]: NuGet SDK resolver should not throw if project path is NULL #11376
Labels
Priority:1
High priority issues that must be resolved in the current sprint.
Product:MSBuildSDKResolver
The NuGet powered SDK resolver. Owned by MSBuild team
Type:Bug
Milestone
NuGet Product Used
MSBuild.exe
Product Version
6.0
Worked before?
Yes, 5.x
Impact
It bothers me. A fix would be nice
Repro Steps & Context
MSBuild will evaluate in-memory projects and ask SDK resolvers to resolve paths to SDKs. In previous versions of MSBuild, a context is passed with a
null
value for the path to the project and the NuGet SDK resolver would throw an exception. However, MSBuild would consider this non-fatal, log a warning, and try the next resolver. In MSBuild 17.0, this logic changed to consider this scenario fatal and fail evaluation.Related: dotnet/msbuild#7035
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: