Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Local NuGet Package Source throws Error "Object reference not set to an instance of an object."

$
0
0

My goal is to publish and install my .nupkg to a local package source before I push them to our shared package source.

For this I have created a local directory C:\Users\Public\Documents\Dev\_local-nuget-package-source from which I want to install the compiled .nupkg in another project.I add the .nupkg files as described per Microsoft docs without issues: https://learn.microsoft.com/en-us/nuget/hosting-packages/local-feeds.

However when I try to add the directory as a local source in Visual Studio 2022 > Tools > Options > NuGet Package Manager > Package Sources and try to install a package via the in-built NuGet Package Browser it shows me the following error:enter image description here

And trying to do it via the Package Manager console or nuget in powershell I get an error like:enter image description here

I have checked that all the paths are correct. I have made sure my nuspec files and meta data seem in order.Dis- and re-enable my package source. Clear NuGet Caches. System Restart. Deleting all bin/ and obj/ inside my solution and rebuild. As many related Stack-Overflow and other Forums have suggested.

I am honestly at a loss as to what I am supposed to do to make this work.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>