Exposing IISExpress Site On Local Network Visual Studio 2015

那年仲夏 提交于 2019-12-11 16:19:36

问题


I have a solution that I was originally building in Visual Studio 2012. I needed this to be available on my local network so I added an additional IP address binding to this file:

C:\Users\<name>\Documents\IISExpress\config\applicationhost.config

This all works without any issues. However, when I run the same solution through Visual Studio 2015 the site is no longer available on the network as configured in this file.

How do I configure Visual Studio 2015 to offer the same network availability?


回答1:


Right, no sooner as I had posted this question I figured out the problem.

Visual Studio 2015 doesn't use the global configuration file detailed above by default. It creates a solution specific version under the solution directory structure here:

<solution_dir>\.vs\config\applicationhost.config

Or you can add:

<UseGlobalApplicationHostFile>True</UseGlobalApplicationHostFile>

To your solution .csproj file.



来源:https://stackoverflow.com/questions/33709864/exposing-iisexpress-site-on-local-network-visual-studio-2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!