visual-studio - 在解决方案中的新项目中安装 nuget 包,其中包已用于现有项目

标签 visual-studio visual-studio-2013 nuget nuget-package

我有一个解决方案,我使用 Nuget 来管理我的包。

使用Nuget,我已经安装了ie。解决方案中 X 项目中的 Entity Framework 。之后,我添加了一个新项目,我想在我的新项目中安装 Entity Framework 。

但是,当我打开 nuget 包管理器时,我无法在我使用的现有包上单击“安装”。那么如何在我的新项目中安装 Entity Framework 呢?

enter image description here

最佳答案

最简单的方法是使用 Package Manager Console 。只需从下拉列表中选择您的项目并运行以下命令:

Install-Package EntityFramework

您还可以使用Manage NuGet Packages for Solution dialog ,也许不会显示已安装的这些软件包。

关于visual-studio - 在解决方案中的新项目中安装 nuget 包,其中包已用于现有项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22389312/

相关文章:

visual-studio - 为什么每个 IDE 都有不同的调试键盘快捷键?

c# - DataView.Count() 返回多个值

c++ - 构建Qt时出现编译器错误

c++11 - 在 VS 2015 中为 const vector<const T> 报告了编译器错误,但在 VS 2013 中没有

xml - 打开两个XMl文件时Visual Studio崩溃

c# - 如何在没有 nuget.exe 或 Visual Studio 扩展的情况下下载 Nuget 包?

xml - Visual Studio 2013 IntelliSense 无法使用特定的 web.config 文件

visual-studio - Azure 网站未通过 Visual Studio Web 部署更新

android - 在适用于 Android (Hyper-V) 的 VS 模拟器上运行 API 级别 24+

.net-core - 使用 dotnet CLI 显示过时的 nuget 包