Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot control startup projects in Visual Studio

Visual Studio 2012 will not allow me to set multiple startup projects.

I have tried:

  • Right-click the solution / Set StartUp Projects...

    Result: Nothing happens.

  • View / Property Pages

    Result: Popup "Object reference not set to an instance of an object."

I have no add-ins running, and disabled all extensions that can be disabled without uninstalling. Active extensions are

  • Microsoft Web Developer Tools
  • NuGet Package Manager
  • Visual Studio Extensions for Windows Library for JavaScript (1.0.8377.0 AND 1.0.9200.20512
  • VisualSVN

Is this a known issue? Is there a fix/work-around? Can I specify the startup projects by editing the .sln/.csproj file if the VS2012 UI continues to fail?

like image 249
Eric J. Avatar asked Aug 13 '26 13:08

Eric J.


2 Answers

I'm pretty sure this has to do with NuGet Package Manager. I did as described here.

Uninstalled NuGet Package Manager in Tools => Extensions and Updates... and restarted Visual Studio 2012/Visual Studio 2013 Preview. Now I can happily configure my solution properties again!

Installed NuGet Package Manager again and the problem reappeared. :(

This is a palliative answer. If there's a definitive answer, please share it! :)

Make sure you vote on this Connect Bug.

like image 148
Leniel Maccaferri Avatar answered Aug 15 '26 08:08

Leniel Maccaferri


Found this post while searching for a related issue I was having. I thought it would be helpful for others to know what I found.

My problem was trying to switch between start up projects, IIS Express would always load the same project. My solution was to edit the project properties >Web> assign a different port number for each project. Now when I select Set as StartUp Project... it actually works

Note** I did not have any issues with NuGet probably because I'm using the released version of 2013

like image 24
WeisserHund Avatar answered Aug 15 '26 10:08

WeisserHund



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!