nusave
nusave copied to clipboard
way to bypass nuget.org index.json check
Thanks a lot for creating such good tool!
I succeeded in downloading the nuget files, and I try to restore them in a VM that blocks Internet connection like,
D:\30_VS_Projects>dotnet restore --packages D:\30_VS_Projects\cacheDir D:\30_VS_Projects\nusave-3.1.1 Determining projects to restore... C:\Program Files\dotnet\sdk\5.0.404\NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [D:\30_VS_Projects\nusave-3.1.1\nusave.sln] C:\Program Files\dotnet\sdk\5.0.404\NuGet.targets(131,5): error : No such host is known. (api.nuget.org:443) [D:\30_VS_Projects\nusave-3.1.1\nusave.sln] C:\Program Files\dotnet\sdk\5.0.404\NuGet.targets(131,5): error : No such host is known. [D:\30_VS_Projects\nusave-3.1.1\nusave.sln]
D:\30_VS_Projects>
Is there any way to restore packages without the index.json file?
I searched the Internet and found similar topic: https://blog.bigfont.ca/dotnet-restore-without-an-internet-connection/
Great thanks!