Skip to content

Warn that NuGet.exe needs .NET Framework MSBuild - #7261

Merged
zivkan merged 2 commits into
devfrom
dev-zivkan-nuget.exe-dotnet-core-msbuild
Apr 17, 2026
Merged

zivkan merged 2 commits into
devfrom
dev-zivkan-nuget.exe-dotnet-core-msbuild

Conversation

@zivkan

@zivkan zivkan commented Apr 7, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#14844

Description

Detect when a .NET SDK directory was provided and report an error. NuGet.exe runs on the .NET Framework runtime and therefore can't use the .NET (Core) runtime MSBuild.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner April 7, 2026 23:19
@zivkan
zivkan requested review from Nigusu-Allehu and jebriede April 7, 2026 23:19
Nigusu-Allehu
Nigusu-Allehu previously approved these changes Apr 8, 2026

@Nigusu-Allehu Nigusu-Allehu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outside of the invisible character change in the xlfs, this looks good to me

@zivkan
zivkan merged commit 461fa93 into dev Apr 17, 2026
17 of 18 checks passed
@zivkan
zivkan deleted the dev-zivkan-nuget.exe-dotnet-core-msbuild branch April 17, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nuget.exe restore -MSBuildPath crashes when pointing it to .NET SDK directory

3 participants