Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio c# should NOT start IIS website when debugging unit tests

I have a VS (2013) solution containing two unittest project's and a seperate webproject. The webproject has no relation to the unittest projects. The unittest projects is covering integration test of another solution and the webproject is a dashboard showing the results of these tests. They dont require each other to run as the test results are stored on an external server.

My issue is: When I debug one of my tests (right click + debug test), the webproject is also started and the IIS express will be running. While this does not affect my tests, it is very annoying. How do I make sure the webproject is not automatically started when debugging the tests? The project is NOT set as startup project.

I know that I could simply create two separate solutions, but I want to keep the projects in a single solution.

Thank you for your help.

like image 713
stackman82 Avatar asked Dec 14 '15 10:12

stackman82


People also ask

Can I use Visual Studio for C?

The Microsoft C/C++ for Visual Studio Code extension supports IntelliSense, debugging, code formatting, auto-completion. Visual Studio for Mac doesn't support Microsoft C++, but does support . NET languages and cross-platform development.

Is Visual Studio C or C++?

Visual Studio C/C++ IDE and Compiler for Windows.


1 Answers

Click on your webproject, hit F4, there is an option "Always start when debugging", you should turn-off this option.

like image 151
Thomas Avatar answered Oct 05 '22 21:10

Thomas