Visual Studio C # Should Not Launch IIS Website When Debugging Unit Tests

I have a VS (2013) solution containing two unittest projects and a separate web project. The web project is not related to unittest projects. Unittest projects cover the integration test of another solution, and webproject is a dashboard showing the results of these tests. They do not require each other to run, because the test results are stored on an external server.

My problem: When I debug one of my tests (right click + debug test), the web project also starts and the IIS Express service starts. Although this does not affect my tests, it is very annoying. How can I make sure that the web project does not start automatically when debugging tests? The project is NOT installed as a launch project.

I know that I can just create two separate solutions, but I want to keep the projects in one solution.

Thank you for your help.

+5
source share
1 answer

Click on your web project, press F4, there is the option "Always run when debugging", you must disable this option.

+6
source

Source: https://habr.com/ru/post/1238096/


All Articles