Can't install nuget packages locally [error: There are no versions available for the package / error: NU1101: Unable to find package No packages exist with this id in source(s)] #14054
-
I'm trying to install a Nuget package locally, so I can test it before uploading it. I followed everything in this guide. That's right, everything. Even the part where you have to change the
And even edited the Nuget.Config to have this:
And guess what? It doesn't work...
I even tried adding the
Here's the csproj that I generated in a script that I made:
What am I missing? What am I doing wrong? Can someone please help me out here? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay, so the issue was that full paths aren't supported in
Then it has to be called by the package ID, not the full path to the package, while in your project folder, so like this:
And there, it will work with no problems. Anyways, since this issue has been resolved, I can now close this. |
Beta Was this translation helpful? Give feedback.
Okay, so the issue was that full paths aren't supported in
dotnet add package
. The directory of where the .nupkg is located needs to be defined in the NuGet.Config. So like this:Then it has to be called by the package ID, not the full path to the package, while in your project folder, so like this:
And there, it …