You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GetMessage function returns a localised message, so there is no match if language other than English is used and the command fails with multiple errors.
varsymbolNameRegx=newSystem.Text.RegularExpressions.Regex(@"The type or namespace name '(\w+)'");varculture=newSystem.Globalization.CultureInfo("en-US");varmatch=symbolNameRegx.Match(diag.GetMessage(culture));
The text was updated successfully, but these errors were encountered:
When looking for errors, if the
Id
is"CS0246"
the diagnostic message is checked using a regular expression:win32metadata/sources/ClangSharpSourceToWinmd/ClangSharpSourceCompilation.cs
Lines 150 to 163 in d32d7f4
The
GetMessage
function returns a localised message, so there is no match if language other than English is used and the command fails with multiple errors.Hopefully, this problem should be easy to fix, because an
IFormatProvider
can be passed as an argument to use the appropriate language - see https://github.com/krzysdz/win32metadata/commit/5b142922ebe17c8e6587a33471b2e1892308789b:The text was updated successfully, but these errors were encountered: