Godot script problem in visual studio

Godot v3.5

Question##

Whenever i am trying to add script of my scene in visual studio through godot, it throws errors like this:

Determining projects to restore…
C:\Program Files\dotnet\sdk\8.0.201\NuGet.targets(169,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\Users\HP\Desktop\game01\Game 01.sln]
C:\Program Files\dotnet\sdk\8.0.201\NuGet.targets(169,5): error : No such host is known. (api.nuget.org:443) [C:\Users\HP\Desktop\game01\Game 01.sln]
C:\Program Files\dotnet\sdk\8.0.201\NuGet.targets(169,5): error : No such host is known. [C:\Users\HP\Desktop\game01\Game 01.sln]

What should i do? Any suggestions.