Visual Studio For Mac Add Nuget Package

NuGet is the most popular package manager for.NET development and is built in to Visual Studio for Mac and Visual Studio on Windows. You can search for and add packages to your Xamarin.iOS and Xamarin.Android projects using either IDE. Visual Studio for Mac. To remove a project then Update-Package add project back in and run Update-Package again. Race-condition in the Visual Studio NuGet.

Active2 years, 7 months ago

I'd like to add the ASP.NET Core release branch feed to my VS Code feeds, so I can try out an RTM version of SignalR Core which might be compatible with my .NET Core 1.1.0 build.

This fallback folder is now supported by Visual Studio for Mac 7.2 so that on restoring a.NET Core 2.0 project the NuGet packages from the fallback folder will be found and do not need to be downloaded from nuget.org into the local machine NuGet package cache ~/.nuget/packages. This should speed up NuGet package restore for.NET Core 2.0.

I found a number of posts recommending .NET Core Project Manager for this purpose, but I can't find the appropriate NuGet.config file on my MBP, nor any obvious UX to add additional package sources.

Where do I add new package sources for NuGet on VS Code for Mac OS X?

TomTom

1 Answer

Create a nuget.config file in your project's directory that contains this:

Make sure that you run vscode from that directory or from a descendant of that directory.

See also https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior

Nuget package manager for visual studioShaun LuttinShaun Luttin
70.5k43 gold badges259 silver badges315 bronze badges

Visual Studio For Mac Add Nuget Package Explorer

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Microsoft Visual Studio For Mac

Not the answer you're looking for? Browse other questions tagged macosasp.net-corenugetsignalrvisual-studio-code or ask your own question.