Visual Studio 2015重置Web项目以使用IIS Express [英] Visual Studio 2015 resetting web project to use IIS Express

查看:628
本文介绍了Visual Studio 2015重置Web项目以使用IIS Express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2015中有一个我希望在本地IIS上运行的Web项目。我在项目属性中设置它并且它可以正常工作,但每当我关闭并重新打开Visual Studio时,它总是重置项目以使用IIS Express。

I have a web project in VS2015 that I want to run on Local IIS. I set this up in the project properties and it works correctly, but whenever I close and reopen Visual Studio it always resets the project to use IIS Express.

编辑:当我关闭并重新打开解决方案时会发生这种情况,即使Visual Studio保持打开状态。

this happens when I close and reopen the solution, even if Visual Studio has stayed open.

为什么会发生这种情况,我该如何更改? (注意 - 其他用户正在处理同一个项目,所以我不想将我的本地IIS设置存储在项目文件中,因为我认为这会在他们获得最新版本的代码时覆盖他们的设置。)

Why is this happening, and how can I change it? (Note - other users are working on the same project so I don't want to store my Local IIS settings in the project file as I assume this would overwrite their settings when they got the latest version of the code.)

推荐答案

我编辑了.csproj.user文件,这解决了这个问题。我将< UseIISExpress> true< / UseIISExpress> 更改为< UseIISExpress> false< / UseIISExpress> 并保留所有内容否则一样。

I edited the .csproj.user file and this fixed the problem. I changed <UseIISExpress>true</UseIISExpress> to <UseIISExpress>false</UseIISExpress> and left everything else the same.

我仍然不知道为什么通过用户界面进行此操作无法保存,如果有其他人可以解释,我会乐意接受他们的回答。

I still don't know why doing this through the UI didn't save, if anyone else can explain it I'll happily accept their answer.

这篇关于Visual Studio 2015重置Web项目以使用IIS Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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