我在Visual Studio 2012中使用Power Commands扩展。我选中了在保存时删除和排序的选项。问题是System.Xxx指令是最后排序的,这会导致样式分析错误:
SA1208: System using指令必须放在所有其他using指令之前。
保存前的:
using System;
using System.Diagnostics.CodeAnalysis;
using Foo;
保存后的:
using Foo;
using System;
using System.Diagnostics.CodeAnalysis;
这在VS2010中工作正常(System.Xxx优先)。有人知道怎么纠正这个问题吗?
注意:即使它没有导致SA错误,我仍然希望系统指令排在第一位。
https://stackoverflow.com/questions/12715340
复制相似问题