Visual Studio 2010中的IIS Express到applicationhost.config的路径 [英] IIS Express path to applicationhost.config in Visual Studio 2010

查看:1226
本文介绍了Visual Studio 2010中的IIS Express到applicationhost.config的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法告诉Visual Studio 2010当IIS Express启动时,/ config参数使用什么值?



使用Process Explorer我可以看到: / p>


  • iisexpress.exe进程是由Visual Studio使用/ config参数指向' My Documents \IISExpress


但是我需要存储一个名为我的applicationhost.config在另一个位置。
更改 IIS_USER_HOME 变量可能会做窍门(?),但我不知道任何方式访问它。



我试过的:



我猜这些说明在如何使用IIS Express pre SP1调试.NET Web项目可能适用于我但他们似乎是一个麻烦跟随。应该有一个更简单的方法?



这个StackOverflow问题关于 IIS中的全局变量建议我应该移动我的文档的位置。

解决方案

不能更改IIS_USER_HOME,因为这是由IISExpress.exe在进程启动期间设置的



我不确定您对



如果你不想在VS中使用宏,你可以从命令行启动IIS Express,然后从visual studio附加到iisexpress。 exe和调试您的Web应用程序。


Is there a way to tell Visual Studio 2010 what value to use for the /config parameter when IIS Express is started?

Using Process Explorer I can see:

  • the iisexpress.exe process is started by Visual Studio with the /config parameter pointing to 'My Documents\IISExpress' via the environment variable named IIS_USER_HOME .

However I need to store my applicationhost.config in another location. Changing that IIS_USER_HOME variable might do the trick (?) but I don't know any way to access it.

What I have tried:

I guess that these instructions on how to debug .NET web projects with IIS Express pre SP1 might work for me but they seems like a hassle to follow. There ought to be an easier way?

This StackOverflow question about global variables within IIS Express suggest that I should move the location of 'My Documents'. Unfortunately that is not an option for me.

解决方案

You cannot change IIS_USER_HOME because this is set by IISExpress.exe during the process startup.

I am not sure about concerns you have about how to debug .NET web projects with IIS Express pre SP1 .

If you don't want to use macros in VS, probably you can just start IIS Express from command line with /config switch and then from visual Studio attach to iisexpress.exe and debug your web application.

这篇关于Visual Studio 2010中的IIS Express到applicationhost.config的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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