error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json (in VS .fsx editor or FSI) #13013
Labels
Functionality:Restore
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Type:DCR
Design Change Request
NuGet Product Used
MSBuild.exe
Product Version
dotnet 8.0.100-rc.2.23502.2
Worked before?
not version specifc
Impact
It's more difficult to complete my work
Repro Steps & Context
I'm facing this when using the
#r "nuget: ..."
FSI extension in VS or fromFsiAnyCpu.exe
(and likely indotnet fsi
the same):Repro steps
Editing a .fsx script with few
#r "nuget: ..."
, the first one shows squiggles with this error message, which also shows in the VS status bar.Expected behavior
In case of network error, I think it needs to gracefully attempt package resolution based on ~/.nuget/packages, and report the network issues via telemetry, and fail to the user only if the local resolution failed.
Maybe there is a way to show a warning rather than an error squiggle in such case.
It may still be allowed to fail if it can't resolve dependencies based on the local cache.
Actual behavior
can't load packages in runtime FSI script evaluation or design time script editing in VS and other IDEs.
Known workarounds
Related information
I never face this with machine in US, but do in Europe.
possibly related issue:
how nuget is called in this use case:
@KevinRansom may be able to provide you information about how the msbuild file that has
<PackageReference/>
tags is generated, and how the extension then loads the resolved assemblies based on this. And there is probably some exchange you could have to enable end users to look at the actual exceptions or print warnings about offline resolution of packages.Tracking the issue in F# also: dotnet/fsharp#16278
VS 2022 Version 17.7.6
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: