如何在IIS Express

时间:2015-06-17 07:47:36

标签: c# visual-studio web-applications visual-studio-2013 iis-express

在我的Web应用程序中,我有3种不同的构建配置:

  • 调试
  • 推出
  • 演示

根据以下三种配置,我的Web应用程序将被复制到三个不同的文件夹中:

enter image description here

在我的输出路径中,我得到以下3个文件夹:C:\ Projects \ MyWebApp \

enter image description here

现在,当我使用子域名时,我可以通过IIS Express调用这3个文件夹。我已将这些行添加到 applicationhost.config

enter image description here

现在,我可以通过浏览器中的3个不同子域访问我的3个不同文件夹:

我的问题:

如何教Visual Studio 2013使用当前选择配置的URL?我尝试了以下方法:

enter image description here

不幸的是,Visual Studio无法在此字段中处理环境变量。

0 个答案:

没有答案