I have recently had the problem that all my projects have difficulties with the Nuget packages. Since they seem to be equipped with additional security since version 17.5, I have to reconfigure them. Unfortunately, this does not work. As an example with the Nuget package: Microsoft.EntityFrameworkCore
Does anyone have an idea how I can solve this?
https://learn.microsoft.com/de-de/nuget/consume-packages/package-source-mapping As with Microsoft's documentation on this page, I am supposed to follow the steps. I have done that. Unfortunately, it doesn't work at all. VS does not respond to the package source mapping at all. I have VS 2022 Preview Version 17.7.0.
I've been trying to install the nuget packages manually for days, and that doesn't work either. VS does not find them.
Try to keep %appdata%\NuGet\NuGet.Config clear from anything but your package sources:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />
</packageSources>
</configuration>
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