Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 resetting web project to use IIS Express

I have a web project in VS2015 that I want to run on Local IIS. I set this up in the project properties and it works correctly, but whenever I close and reopen Visual Studio it always resets the project to use IIS Express.

EDIT: this happens when I close and reopen the solution, even if Visual Studio has stayed open.

Why is this happening, and how can I change it? (Note - other users are working on the same project so I don't want to store my Local IIS settings in the project file as I assume this would overwrite their settings when they got the latest version of the code.)

like image 990
Tim Avatar asked Aug 26 '15 08:08

Tim


1 Answers

I edited the .csproj.user file and this fixed the problem. I changed <UseIISExpress>true</UseIISExpress> to <UseIISExpress>false</UseIISExpress> and left everything else the same.

I still don't know why doing this through the UI didn't save, if anyone else can explain it I'll happily accept their answer.

like image 122
Tim Avatar answered Sep 28 '22 09:09

Tim