Resharper dotSettings文件每次都被修改

时间:2015-03-17 10:38:03

标签: .net visual-studio resharper

我最近从Resharper 8升级到Resharper 9.0 Update 1.

我们的解决方案文件夹中有一个常见的Resharper dotSettings文件。

问题是我每次打开解决方案时,dotSettings文件都会被修改。下面是差异:

原件:

<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

修改:

<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpFileLayoutPatternsUpgrade/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateThisQualifierSettings/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

这有点痛苦和烦人,因为我每次都必须撤销这个更改,以便重新定位或签入我的代码。

有没有办法阻止dotSettings文件被修改?

1 个答案:

答案 0 :(得分:2)

不。您只需提交这些更改即可。这意味着ReSharper在版本升级后迁移了一些设置,并且它不应该再次执行。这是一个良性的变化,一旦你接受了变更并提交了,它就不会再被修改。