You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have a nuget.config and we pasted a wrong link for a feed, for example with an extra space. the nuget client seems to fail with a NRE , A better exception should be given to developers to help fix the issue.
For example trying to install a workload and specifying a nuget.config to use
➜ ~ sudo dotnet workload install maui --version 10.0.100-preview.4.25262.2 --configfile ~/.config/NuGet/NuGet.Config
Password:
Welcome to .NET 10.0!
---------------------
SDK Version: 10.0.100-preview.4.25258.110
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, run 'dotnet dev-certs https --trust'
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-newExplore documentation: https://aka.ms/dotnet-docsReport issues and find source on GitHub: https://github.com/dotnet/coreUse 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli--------------------------------------------------------------------------------------Installing workload version 10.0.100-preview.4.25262.2.Workload installation failed. Rolling back installed packs...Workload installation failed: Failed to install workload version 10.0.100-preview.4.25262.2: Object reference not set to an instance of an object.
The text was updated successfully, but these errors were encountered:
@nkolev92 commented on Thu, 29 May 2025 21:10:15 GMT
Team Triage:
The workloads implementation is on the .NET SDK side, and given that add package doesn't have that problem, it's probably best for the .NET SDK to investigate first.
We'll move this issue to that repo.
@rmarinho commented on Tue, 13 May 2025 12:23:09 GMT
NuGet Product Used
dotnet.exe
Product Version
9.0.203
Worked before?
No response
Impact
It bothers me. A fix would be nice
Repro Steps & Context
If we have a nuget.config and we pasted a wrong link for a feed, for example with an extra space. the nuget client seems to fail with a NRE , A better exception should be given to developers to help fix the issue.
For example trying to install a workload and specifying a nuget.config to use
Nuget.config with error extra space on dotnet10-preview4
Verbose Logs
The text was updated successfully, but these errors were encountered: