I've come across a screen that I've never seen before, while playing with Npgsql.EntityFrameworkCore.PostgreSQL
source code, looking for a bug that's blocking my app from running properly.
As things stand right now, I can't even build the source code.
I can't build this code, because the packages can't be found; yet, Visual Studio knows that the latest release is the one I want. How is this possible? What (if anything) can I do to get the packages installed?
Enable package restore by choosing Tools > Options > NuGet Package Manager. Under Package Restore options, select Allow NuGet to download missing packages. In Solution Explorer, right click the solution and select Restore NuGet Packages.
Set up Visual Studio In Visual Studio, select Tools, and then select Options. Select NuGet Package Manager, and then select Package Sources. Enter the feed's Name and Source URL, and then select the green (+) sign to add a new package source. If you enabled upstream sources in your feed, clear the nuget.org checkbox.
Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.
NuGet Package Licenses Types Open source, and more specifically those publishing to Nuget.org, tend to use the SPDX License List, a standard list of licenses available to reference.
Thanks @LeoLiu-MSFT In my case, I was not seeing any other option than the Microsoft Visual Studio Offline package so I need to add myself.
nuget.org https://api.nuget.org/v3/index.json
Nuget package “Not available in this source”… but VS still knows about it?
You should select nuget.org
as package source, not All
. Tseng pointed the correct direction. You probably have a myget feed in your project/Visual Studio.
According to the package Microsoft.EntityFrameworkCore on the nuget.org, the latest version is only 2.1.0-preview1-final (current version)
not have the version 2.1.0-preview3-32169
. So the package you have installed is not comes from nuget.org.
If you add a custom nuget feed with source: https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json
Then you will see the version 2.1.0-preview3-32169
.
So, to resolve this issue, you should select the nuget.org as package source or disable the package source from dotnet.myget.org.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With