Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent iisexpress from running the websites in a solution when the startup app is a console app

I have a solution with a number of projects in it. Even if I set the web project's start options to:

  1. Don't open a page. Wait for a request from an external application.
  2. Use custom webserver. Base URL: http://localhost.

And the startup project to:

  1. Single startup project
  2. Select the console application (not website)

When I press start debugging, IIS express launches (shows up on the taskbar). How do I prevent from IIS Express from launching? I am only running a console application, and don't want IIS Express running.

In fact, all of the websites in the solution launch in IIS, and they consume resources on my machine unnecessarily.

like image 572
Hoppe Avatar asked Jun 20 '14 15:06

Hoppe


2 Answers

There's easy way to do this: in web project's properties F4 (NOT right click-> properties) set "always start when debugging" to false

enter image description here

like image 69
Aleksey L. Avatar answered Oct 08 '22 14:10

Aleksey L.


In the Property Pages-> Start Options: Set Start Action = "Don't open a page..."; Set Server -> Use custom server and leave Base URL blank.

like image 43
RJ Programmer Avatar answered Oct 08 '22 12:10

RJ Programmer