Add libraries to your .Net Solution?

Add libraries to your .Net Solution?

To create a new project in an existing solution, you need to add all required references.However, you want to keep libraries version's in different projects as much consistent as you can. So you basically have two options:

Nuget Manager

A very familiar Nuget Manager can add your required libraries but you need to restrict the version to specific version that used in other projects.

Editing package.config

Also you can copy package.config file from an existing project and build your project.

The problem is it won't update your references to the new list.

Solution: just run the following command in Nuget Console:

Update-Package -Reinstall -ProjectName FullName
Example: Update-Package -Reinstall -ProjectName My.Feature.Join.