如何使用IIS防爆preSS没有污染的.csproj文件 [英] How to use IIS Express without polluting the .csproj file

查看:164
本文介绍了如何使用IIS防爆preSS没有污染的.csproj文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近切换到IIS防爆preSS的asp.net发展论坛,但我不明白,点击使用IIS前preSS ...(在Visual Studio项目上下文菜单)影响.csproj的文件...

I recently switched to IIS Express for asp.net developement but I don't understand that clicking on "Use IIS Express..." (contextual menu on project in Visual Studio) affects the .csproj file...

现在的问题是,当我提交修改(源控制)我也提交了新的IIS防爆preSS的配置,这是,在我看来,用户preference配置。因此,应写入在一个文件名为.suo(由源控制忽略)。

The problem is when I commit changes (Source Control) I also commit the new IIS Express configuration and this is, in my opinion, a user preference configuration. Therefore it should be written in a .suo file (which is ignored by source control).

据我所知,这是不是一个问题更散漫,但我想也许有人会有一个解决方案。

I understand this is more rambling than a question but I thought maybe someone would have a solution.

推荐答案

不幸的是,这些项目设置VS如何判断是否使用卡西尼或IIS防爆preSS。但是,您可以选择保存项目服务器设置在proj.user文件,使他们无法在到源代码控制检查。在项目属性 - >网络,则可以取消选择应用服务器设置为所有用户选项:

Unfortunately, these project settings are how VS can tell whether to use Cassini or IIS Express. However, you can choose to save the project server settings in the proj.user file, so that they will not be checked in to source control. Under project Properties -> Web, you can unselect the "Apply server settings to all users" option:

这篇关于如何使用IIS防爆preSS没有污染的.csproj文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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