Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: NuGet SDK resolver should not throw if project path is NULL #11376

Closed
jeffkl opened this issue Nov 12, 2021 · 0 comments · Fixed by NuGet/NuGet.Client#4335
Closed

[Bug]: NuGet SDK resolver should not throw if project path is NULL #11376

jeffkl opened this issue Nov 12, 2021 · 0 comments · Fixed by NuGet/NuGet.Client#4335
Assignees
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

Comments

@jeffkl
Copy link
Contributor

jeffkl commented Nov 12, 2021

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

@jeffkl jeffkl added Type:Bug Triage:Untriaged Product:MSBuildSDKResolver The NuGet powered SDK resolver. Owned by MSBuild team and removed Triage:Untriaged labels Nov 12, 2021
@jeffkl jeffkl self-assigned this Nov 12, 2021
@jeffkl jeffkl added the Priority:1 High priority issues that must be resolved in the current sprint. label Nov 15, 2021
@jeffkl jeffkl added this to the Sprint 2021-11 milestone Nov 15, 2021
jeffkl added a commit to NuGet/NuGet.Client that referenced this issue Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant