Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I permanently set a new Default project in the VS NuGet Package Manager console?

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?

like image 411
StuperUser Avatar asked Apr 30 '12 17:04

StuperUser


People also ask

How do I change the default project in Visual Studio 2019?

Choose the name of the project which you want to set default startup project. Click to the Project on toolbar and then click Set as startup project.

How do I select a project in package manager console?

Select the Tools > NuGet Package Manager > Package Manager Console menu command. Once the console opens, check that the Default project drop-down list shows the project into which you want to install the package. If you have a single project in the solution, it is already selected.

How do I manage NuGet packages in Visual Studio?

Set up Visual StudioIn Visual Studio, select Tools, and then select Options. Select NuGet Package Manager, and then select Package Sources. Enter the feed's Name and Source URL, and then select the green (+) sign to add a new package source. If you enabled upstream sources in your feed, clear the nuget.org checkbox.


1 Answers

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:

Choosing startup project from context menu

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

Choosing StartUp project from Standard toolbar

like image 60
Sharif Avatar answered Sep 28 '22 04:09

Sharif