Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an easy way to switch from local project references to nuget packages?

In my current project we have several independent libraries that are used by +20 different systems.

Recently we decided to start managing our libraries using NuGet... we already published all libraries as nuget packages in an internal NuGet server and now we will start migrating our +20 apps to use these libs as nuget packages instead of local project references.

Is there an easy/automated way to make these changes?

like image 409
Marcelo Oliveira Avatar asked Mar 19 '14 21:03

Marcelo Oliveira


People also ask

How do I change package source to NuGet?

To manage your package sources, select the Settings icon or select Tools > Options. In the Options window, expand the NuGet Package Manager node and select Package Sources. To add a source, select +, edit the Name, enter the URL or path in Source, and then select Update.


1 Answers

Run the Install-Package command for your packages on your projects and the references will be updated to the nuget packages directory (or whatever you configured it to be).

If your packages do more than simply adding a simple reference (e.g. the ASP.NET MVC package modifies the Web.config file) you'll have some undo to do, but it's generally a relatively painless way of updating .csproj references.

like image 199
dee-see Avatar answered Sep 18 '22 20:09

dee-see