Stop Visual Studio 2013 modifying the IISExpress applicationHost.config

后端 未结 6 1507
南旧
南旧 2020-12-15 04:17

I have a website project using Visual Studio 2013, and each time I open it, it keeps adding a new entry for the website project in applicationHost.config. I use IISExpress

6条回答
  •  北海茫月
    2020-12-15 04:30

    How to: Specify a Port for the Development Server

    I just tried out the method described in the above msdn article to change the port IIS express uses (didn't try 80 though).

    1. right click the website in solution explorer, remove (won't delete files)
    2. edit the applicationHost.config file, change the binding
    3. "add existing web site" in Visual Studio (point to the folder of site you previously removed)

    At that point it doesn't seem to create a new entry in applicationHost.config, and uses the new port.

提交回复
热议问题