我在Visual Studio 2012中使用了Power Commands擴展。我選中了刪除和排序保存選項。問題是,System.Xxx指令正在最後的排序,這是造成風格分析錯誤:使用錯誤順序排序的指令
SA1208: System using directives must be placed before all other using directives.
之前保存:
using System;
using System.Diagnostics.CodeAnalysis;
using Foo;
後保存:
using Foo;
using System;
using System.Diagnostics.CodeAnalysis;
這與VS 2010正常工作(System.Xxx第一次)。任何人都知道如何解決這個問題?
注意:即使它沒有導致SA錯誤,我仍然首選系統指令。
有PowerCommands的VS2012版本嗎?這可能是一個需要注意的問題,因此值得報告。 –
重新安裝Powercommands 2010即使其安裝也會將其應用於VS2012,但AFAIK沒有2012版本的powercommands,對於VS2013,它現在似乎是pwoer工具的一部分。 – CloudyMarble
在這裏查看更多信息:http://stackoverflow.com/questions/12156921/powercommands-for-visual-studio-2012 – CloudyMarble