IIS Express 在哪个目录中存储我的站点 DLL 和其他资源?
我检查了我的
<site>
的 %USERPROFILE%\Documents\IISExpress\applicationhost.config
部分,它看起来像这样:
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":8080:localhost" />
</bindings>
</site>
物理路径设置为
%IIS_SITES_HOME%\WebSite1
,它指向%USERPROFILE%\Documents\My Web Sites
,但在这个目录中,只有默认文件,如iistart.htm
,iis.png
和其他垃圾。
我的网站在
localhost:58620
上运行,但我没有针对它的网站配置 applicationhost.config
。
我从 Visual Studio 2015 启动 IIS Express。
那么我的localhost:58620
站点的
物理目录位于哪里?谢谢。
在您的解决方案文件夹中,有一个名为 .vs 的隐藏子文件夹,其中的 applicationHost.config 控制着这些内容。这是 VS 2015 的变化。
您可以从这篇文章了解更多信息。