-1
Steps to Reproduce: Create new Visual Basic Analyzer with Code Fix (NuGet + VSIX) From VSIX project add New Item... Extensibility/Custom Command called "CustomCommand" Not required but helps see the issue set the following options Option Explicit Off Option Strict Off Option Infer On Build Solution
添加了幾個文件,並且您收到ComandComand.vb和CustomCommandPackage.vb文件的381個警告。警告是「類型或命名空間定義或期望行結束」,「註釋中的換行符」,「期望的類型」,「字符字面值太多的字符」,「逗號期望」。在VB文件中沒有任何意義。如果我將這些文件包含在C#項目中並將它們重命名爲.cs,我會得到完全相同的錯誤。錯誤對於.VB文件沒有意義。Visual Studio 2015似乎與C#編寫VB代碼