dotnet / codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
MIT License
1.24k stars 244 forks source link

PrivateFieldNamingRules throws InvalidCastException while analyzing vb project #216

Closed didemg closed 8 years ago

didemg commented 8 years ago

exception thrown: "Unable to cast object of type 'Microsoft.CodeAnalysis.VisualBasic.Symbols.SourcePropertySymbol' to type 'Microsoft.CodeAnalysis.IFieldSymbol'. at Microsoft.DotNet.CodeFormatting.Rules.PrivateFieldNamingRule.CommonRule.d__3.MoveNext() in D:\Roslyn\src\codeformatter-anfix\src\Microsoft.DotNet.CodeFormatting\Rules\PrivateFieldNamingRule.cs:line 65

VBLib.zip

davkean commented 8 years ago

Also running into this.

davkean commented 8 years ago

This has been fixed in #218.