Nuget 和 web.config 格式 [英] Nuget and web.config formatting

查看:47
本文介绍了Nuget 和 web.config 格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我公司的标准,所有代码文档都使用 4 个空格代替制表符,并且所有制表符都根据需要替换为 4 个空格.这一切都很好,花花公子.但是,最近我发现每当 Nuget 更新我的 web.config 时,整个文件都会被重写为 2 个空格,而不是每个缩进级别的 4 个空格.这真的很烦人,因为它导致我们的 VCS 认为整个文件已经更改,而实际上只有几行.有没有办法防止这种情况发生?

As a standard at my company, all code documents use 4 spaces instead of tabs, and all tabs are replaced with 4 spaces as necessary. This all works fine and dandy. However, recently I discovered that any time Nuget performs an update to my web.config, the entire file is rewritten with 2 spaces in stead of 4 for each level of indent. This is really annoying, as it causes our VCS to think the entire file has changed when only a few lines actually have. Is there a way to prevent this?

推荐答案

不知道有任何解决方案.您可能应该在 NuGet 讨论中提出这个问题:http://nuget.codeplex.com/discussions

Not aware of any solutions to this. You should probably raise this on NuGet discussions: http://nuget.codeplex.com/discussions

这篇关于Nuget 和 web.config 格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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