Giter VIP home page Giter VIP logo

Comments (7)

akien-mga avatar akien-mga commented on May 29, 2024 1

It's not Godot, but dotnet, which has this behavior.

It's arguable whether it's a good behavior for dotnet restore (or NuGet, see below) to fail if one source is missing instead of falling back to other sources, but that's a problem you should take to the .NET people, not Godot. We can't work it around.

from godot.

akien-mga avatar akien-mga commented on May 29, 2024

CC @godotengine/dotnet

from godot.

paulloz avatar paulloz commented on May 29, 2024

Hello. You can list your nuget sources with the following command (run it from the folder containing your PrinceKiller.csproj file):

dotnet nuget list source

Those sources are defined either globally in %APPDATA%\NuGet\NuGet.Config / %APPDATA%\NuGet\config\*.Config (I'm assuming Windows paths, since you are talking about VS), or locally for your project in a NuGet.Config in any folder upward of the one containing your .csproj.
The restore is failing because you probably disabled the default api.nuget.org source, and none of your other sources is actually able to provide Godot.NET.Sdk.

from godot.

uuuus avatar uuuus commented on May 29, 2024

No, it's not disabled.
nuget

from godot.

paulloz avatar paulloz commented on May 29, 2024

Then your source at 192.168.178.3:5000 is not available. Which would also make the restore fail, since the operation requires all enabled sources to be available. In any case, this is a configuration issue, and not one on Godot's end.

from godot.

uuuus avatar uuuus commented on May 29, 2024

You say godot is looking for its sdk in my local source and it is not an issue? Funny approach to the problem.

from godot.

paulloz avatar paulloz commented on May 29, 2024

Godot is not particularly looking for Godot.NET.Sdk in your local source, that is not how NuGet works. If any of your configured and enabled sources is unavailable, any restore operation will fail, period. This is a documented behaviour (I don't want to backlink issues for nothing, but you can find at least half a dozen of threads about it over on https://github.com/NuGet/Home). Trying to restore any other package (unrelated to Godot) that is not currently in your local cache will end in the same result.

If you want your custom source to only be used for a specific set of packages, you can properly configure it with Source Mapping. Or you can disable it altogether for that project with disabledPackageSources.

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.