如何在VS NuGet软件包管理器控制台中永久设置一个新的默认项目? [英] How do I permanently set a new Default project in the VS NuGet Package Manager console?

查看:389
本文介绍了如何在VS NuGet软件包管理器控制台中永久设置一个新的默认项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2012,每次我重新打开VS时,NuGet软件包管理器控制台中的默认项目都已重置为看起来像任意项目的项目,并且我必须使用下拉列表将其重置为适当的项目./p>

如何为程序包管理器控制台的默认项目设置(并保留此设置)?

解决方案

文档Set as StartUp Project:

来控制StartUp项目.

或从窗口顶部的标准"工具栏中的下拉菜单中.

I am using VS2012 and every time I reopen VS, the Default project in the NuGet Package Manager console has been reset to what seems like a arbitrary project, and I have to use the dropdown list to reset to the appropriate project.

How can I set (and persist this setting) for the default project for the package manager console?

解决方案

As it stated in documentation here Package Manager Console's Default Project is whatever project set as StartUp Project on your solution level. You can control StartUp project using right click on project in solution explorer and choosing Set as StartUp Project:

or from the dropdown in Standard toolbar on top of the window.

这篇关于如何在VS NuGet软件包管理器控制台中永久设置一个新的默认项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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