在本地网络Visual Studio 2015上公开IISExpress网站 [英] Exposing IISExpress Site On Local Network Visual Studio 2015

查看:98
本文介绍了在本地网络Visual Studio 2015上公开IISExpress网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个最初在Visual Studio 2012中构建的解决方案.我需要在我的本地网络上可以使用它,因此我向该文件添加了一个额外的IP地址绑定:

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

这一切都没有问题.但是,当我通过Visual Studio 2015运行相同的解决方案时,此文件中配置的站点不再在网络上可用.

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.

如何配置Visual Studio 2015以提供相同的网络可用性?

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

推荐答案

对,我刚发布此问题后,便立即发现了问题所在.

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

默认情况下,Visual Studio 2015不使用上面详细介绍的全局配置文件.它在以下解决方案目录结构下创建解决方案特定的版本:

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

或者您可以添加:

<UseGlobalApplicationHostFile>True</UseGlobalApplicationHostFile>

到您的解决方案.csproj文件.

To your solution .csproj file.

这篇关于在本地网络Visual Studio 2015上公开IISExpress网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆