Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use IIS Express without polluting the .csproj file

I recently switched to IIS Express for asp.net developement but I don't understand that clicking on "Use IIS Express..." (contextual menu on project in Visual Studio) affects the .csproj file...

The problem is when I commit changes (Source Control) I also commit the new IIS Express configuration and this is, in my opinion, a user preference configuration. Therefore it should be written in a .suo file (which is ignored by source control).

I understand this is more rambling than a question but I thought maybe someone would have a solution.

like image 385
W3Max Avatar asked Jun 10 '11 13:06

W3Max


1 Answers

Unfortunately, these project settings are how VS can tell whether to use Cassini or IIS Express. However, you can choose to save the project server settings in the proj.user file, so that they will not be checked in to source control. Under project Properties -> Web, you can unselect the "Apply server settings to all users" option:

VS2010 server settings

like image 132
Jimmy Avatar answered Oct 05 '22 21:10

Jimmy