简体   繁体   中英

Install nuget package in a new project in solution, where package is already used for existing projects

I have a solution, where I use Nuget for managing my packages.

Using Nuget, I have installed ie. entity framework in X projects in a solution. After, I have added a new project, and I want to install the entity framework in my new project.

However, when I open the nuget package manager, I cannot click install on existing packages I use. So how do I install the entity framework in my new projects?

在此处输入图片说明

Easiest way would be to use Package Manager Console . Just select your project from the dropdown and run this command:

Install-Package EntityFramework

You can also use Manage NuGet Packages for Solution dialog , maybe that won't show those packages as installed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM