如何在 Visual Studio 2015 中启用 nugets 包还原? [英] How to enable nugets package restore in Visual Studio 2015?

查看:63
本文介绍了如何在 Visual Studio 2015 中启用 nugets 包还原?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Visual Studio 2015 中启用 nuget 包还原功能?

How do I enable the nuget package restore feature in Visual Studio 2015?

我的上下文菜单中缺少该功能(是的 - 我已经仔细检查过我是否在解决方案而不是项目上尝试过)

The feature is just missing in my context menu (Yes - I've double checked that I try it on the solution instead of a project)

我唯一的项目是 .NET 4.5 控制台应用程序 - 还没有 .nuget 文件夹.安装了一个实际的 nuget 包.

My only project is a .NET 4.5 console application - there is no .nuget folder yet. There is an actual nuget package installed.

推荐答案

我遇到了和你一样的问题,我解决的方法是从我的解决方案中删除 packages 文件夹和 binobj 解决方案中每个项目的文件夹并重新构建.

I had the same problem as you and the way I solved it was to delete the packages folder from my solution and also bin and obj folders from every project in the solution and give it a rebuild.

这篇关于如何在 Visual Studio 2015 中启用 nugets 包还原?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆