打开Web项目设置到没有IIS的机器中的IIS目录,指向嵌入式服务器 [英] Opening web project set to IIS directory in machine without IIS, pointing to embedded server
问题描述
我可以在TFS中打开一个Web项目;但是,在我的QA环境中,我必须将其更改为使用IIS。在我的本地开发环境中,我没有IIS,无法安装它。
I can open a web project in TFS; however, in my QA environment I have to change it to use IIS. In my local dev environment, I don't have IIS and can't install it.
新公司规则拒绝质量保证访问我,我无法打开我的网络项目来修复我的机器。
New company rules deny access in QA to me and I can't open my web project to fix it in my machine.
当我打开项目时,我收到Web应用程序项目...配置为使用IIS。要访问本地IIS网站,必须在管理员帐户的上下文。然后我以管理员身份打开,但VS要求在我的IIS上创建虚拟目录。
When I open the project I receive "The Web Application Project ... is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account." Then I open as administrator but VS asks for the virtual directory to be creatred on my IIS.
推荐答案
NgM链接确实有帮助,但是如果你需要一步一步的方法而不是去你的.csproj文件属性。使其可写,在文本编辑器中打开它并搜索< UseIIS> True< / UseIIS>
将其转换为< UseIIS> False< / UseIIS>
。打开解决方案,获取最新版本,当您收到警告时,请保留修改后的.csproj的本地版本。您也可以在下一个最新版本中登记修改后的.csproj以解决问题。
The NgM link can really help, but if you need a step-by-step way than go to your .csproj file property. Make it writable, open it in a text editor and search for <UseIIS>True</UseIIS>
turn it to <UseIIS>False</UseIIS>
. Open solution, get the latest version and when you receive a warning, keep the local version of your modified .csproj. You can too check-in your modified .csproj to stop troubles in the next latest version.
bye
这篇关于打开Web项目设置到没有IIS的机器中的IIS目录,指向嵌入式服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!