Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.XmlException converting VB->C# (VB-project produces a Visual Studio Extension) #714

Closed
LeeMSilver opened this issue Mar 29, 2021 · 3 comments

Comments

@LeeMSilver
Copy link

LeeMSilver commented Mar 29, 2021

Steps to reproduce

  1. Clicked on Convert to C# on Project's context menu
  2. Exception thrown immediately after Simplification completed for the last file

Error message shown

---------------------------
Code converter 8.2.2 - Visual Studio 16.9.31112.23
---------------------------
An error has occured during conversion - press Ctrl+C to copy the details: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
   at ICSharpCode.CodeConverter.CSharp.VBToCSProjectContentsConverter.RebaseResxPaths(String projDirPath, String resxDirPath, String originalResx)
   at ICSharpCode.CodeConverter.CSharp.VBToCSProjectContentsConverter.<GetAdditionalConversionResults>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.CSharp.VBToCSProjectContentsConverter.<GetAdditionalConversionResults>d__26.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<Convert>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<Convert>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<Convert>d__19.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProjectContents>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProjectContents>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProjectContents>d__18.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<WithProjectFile>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<WithProjectFile>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<WithProjectFile>d__13.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProject>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProject>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProject>d__12.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Linq.AsyncEnumerable.SelectManyAsyncIterator`2.<MoveNextCore>d__13.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\Operators\SelectMany.cs:line 432
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Linq.AsyncIteratorBase`1.<MoveNextAsync>d__8.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\AsyncIterator.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Linq.AsyncIteratorBase`1.<MoveNextAsync>d__8.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\AsyncIterator.cs:line 75
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Linq.AsyncEnumerable.ConcatAsyncIterator`1.<MoveNextCore>d__6.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\Operators\Concat.cs:line 146
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Linq.AsyncIteratorBase`1.<MoveNextAsync>d__8.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\AsyncIterator.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Linq.AsyncIteratorBase`1.<MoveNextAsync>d__8.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\AsyncIterator.cs:line 75
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectUnhandled>d__25`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectUnhandled>d__25`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectUnhandled>d__25`1.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<WriteConvertedFilesAndShowSummaryAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<WriteConvertedFilesAndShowSummaryAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<>c__DisplayClass13_0`1.<<ConvertProjectsAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectsAsync>d__13`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ICSharpCode.CodeConverter.VsExtension.ConvertVBToCSCommand.<SolutionOrProjectMenuItemCallbackAsync>d__23.MoveNext()
---------------------------
OK
---------------------------

Details

  • Product in use: VS extension
  • Version in use: 8.2.2 (VS version 16.9.31112.23)

I'm attaching the Output Window and all xml-files in the project, including the vbproj-file



Building solution prior to conversion for maximum accuracy...


Converting Lee01MacrosEX...

Phase 1 of 2:

  • D:\Tools\VSCommon\Lee01Macros\Lee01Macros.vb - conversion started
  • D:\Tools\VSCommon\Lee01Macros\Lee01MacrosEXPackage.vb - conversion started
  • D:\Tools\VSCommon\Lee01Macros\Lee01MacrosEXPackage.vb - conversion succeeded
  • D:\Tools\VSCommon\Lee01Macros\My Project\MyNamespace.Static.1.Designer.vb - conversion started
  • D:\Tools\VSCommon\Lee01Macros\My Project\MyNamespace.Static.1.Designer.vb - conversion succeeded
  • D:\Tools\VSCommon\Lee01Macros\My Project\AssemblyInfo.vb - conversion started
  • D:\Tools\VSCommon\Lee01Macros\My Project\AssemblyInfo.vb - conversion succeeded
  • D:\Tools\VSCommon\Lee01Macros\Lee01Macros.vb - conversion succeeded

Phase 2 of 2:

  • D:\Tools\VSCommon\Lee01Macros\Lee01MacrosEXPackage.vb - simplification started
  • D:\Tools\VSCommon\Lee01Macros\My Project\MyNamespace.Static.1.Designer.vb - simplification started
  • D:\Tools\VSCommon\Lee01Macros\My Project\MyNamespace.Static.1.Designer.vb - simplification succeeded
  • D:\Tools\VSCommon\Lee01Macros\My Project\AssemblyInfo.vb - simplification started
  • D:\Tools\VSCommon\Lee01Macros\My Project\AssemblyInfo.vb - simplification succeeded
  • D:\Tools\VSCommon\Lee01Macros\Lee01Macros.vb - simplification started
  • D:\Tools\VSCommon\Lee01Macros\Lee01MacrosEXPackage.vb - simplification succeeded
  • D:\Tools\VSCommon\Lee01Macros\Lee01Macros.vb - simplification succeeded

Lee01Macrosex.vbproj

16.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) On Binary true Debug AnyCPU 2.0 {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{F184B08F-C81C-45F6-A57F-5ABD9991F28F} {30610A67-51D8-445E-B734-AADC1EBA9564} Library Lee01MacrosEX Lee01MacrosEX v4.7.2 true true true false false true true Off On Program $(DevEnvDir)devenv.exe /rootsuffix Exp true full false bin\Debug\ true true prompt 41999,42016 42017,42018,42019,42020,42021,42022,42030,42032,42036,42104,42108,42109 true PowerShell pdbonly true bin\Release\ false true prompt 41999,42016 42017,42018,42019,42020,42021,42022,42030,42032,42036,42104,42108,42109 true true Off True d:\tools\vscommon\bin PowerShell Designer 3.5.0 compile; build; native; contentfiles; analyzers; buildtransitive runtime; build; native; contentfiles; analyzers; buildtransitive all Menus.ctmenu true VSPackage Designer if exist \tools\vscommon\lee01macros\bin\release\Lee01MacrosEX.dll dir \tools\vscommon\lee01macros\bin\release\Lee01MacrosEX.dll dir \tools\vscommon\lee01macros\bin\release\Lee01MacrosEX.dll

App.config


sourceextension.vsixmanifest

Lee01MacrosEX Lee01MacrosEX.

VSPackage.resx

  <!-- Guid for commands -->
  <GuidSymbol name="guid_Lee01MacrosEXCmdSet" value="{9375dd4b-bb13-4692-9f62-2e3137a84942}">

     <IDSymbol name="MyMenuGroup" value="0x1020" />
     <IDSymbol name="MySubMenu" value="0x1025" />
     <IDSymbol name="MySubMenuGroup" value="0x1026" />

     <IDSymbol name="AmperConvertToAndID" value="0x3000000" />
     <IDSymbol name="AppendConcatanateID" value="0x3010000" />
     <IDSymbol name="AppendMergeOrAssignMergeID" value="0x3020000" />
     <IDSymbol name="AssignAndIfCombineIntoConditionalID" value="0x3030000" />
     <IDSymbol name="AssignMergeID" value="0x3035000" />
     <IDSymbol name="AssignSplitChainedID" value="0x3040000" />
     <IDSymbol name="AsterDeleteID" value="0x3070000" />
     <IDSymbol name="BlockDeleteEnclosingBracesID" value="0x3100000" />
     <IDSymbol name="CodeIndentOrCInsertID" value="0x3170000" />
     <IDSymbol name="CommaConvertToAndID" value="0x3240000" />
     <IDSymbol name="CommaConvertToDashID" value="0x3250000" />
     <IDSymbol name="CommaConvertToDashAndSplitID" value="0x3260000" />
     <IDSymbol name="CommaConvertToDotAndSplitID" value="0x3270000" />
     <IDSymbol name="CommaConvertToOrID" value="0x3280000" />
     <IDSymbol name="CommaDeleteID" value="0x3290000" />
     <IDSymbol name="CommaDeleteAndSplitID" value="0x3300000" />
     <IDSymbol name="CommandUndoID" value="0x3305000" />
     <IDSymbol name="ConditionalAlignID" value="0x3310000" />
     <IDSymbol name="ConditionalConvertToLogicalID" value="0x3320000" />
     <IDSymbol name="ConditionalInsertCastID" value="0x3330000" />
     <IDSymbol name="ConditionalSplitOrCMakeSingleID" value="0x3340000" />
     <IDSymbol name="ConfigurationUpdateID" value="0x3350000" />
     <IDSymbol name="DashAndOrConvertToDashID" value="0x3360000" />
     <IDSymbol name="DashConvertToSoID" value="0x3370000" />
     <IDSymbol name="DashDeleteID" value="0x3380000" />
     <IDSymbol name="DotConvertToDashID" value="0x3390000" />
     <IDSymbol name="EnumCompressID" value="0x3430000" />
     <IDSymbol name="EnumCompressAndSortByNameID" value="0x3440000" />
     <IDSymbol name="EnumSortByNameID" value="0x3450000" />
     <IDSymbol name="EnumSortByNameAndRenumberID" value="0x3460000" />
     <IDSymbol name="EnumSortByValueID" value="0x3470000" />
     <IDSymbol name="FieldArrayInitializerFormatID" value="0x3480000" />
     <IDSymbol name="FieldGotoEnclosingClassID" value="0x3490000" />
     <IDSymbol name="FieldInvertLogicalExpressionID" value="0x3500000" />
     <IDSymbol name="FieldNameAlignID" value="0x3510000" />
     <IDSymbol name="FieldNameMergeDeclarationAndUseID" value="0x3530000" />
     <IDSymbol name="FieldNameMoveDeclarationID" value="0x3540000" />
     <IDSymbol name="FieldNameSortDeclarationByDeclarationLengthID" value="0x3550000" />
     <IDSymbol name="FieldNameSortDeclarationByDeclarationLengthDescendingID" value="0x3560000" />
     <IDSymbol name="FileBeginID" value="0x3590000" />
     <IDSymbol name="FileBeginResumeID" value="0x3600000" />
     <IDSymbol name="FileEndID" value="0x3610000" />
     <IDSymbol name="FileMoveToOtherDirectoryID" value="0x3615000" />
     <IDSymbol name="FilePrefixGenericParametersID" value="0x3617500" />
     <IDSymbol name="FileRenameUnderscoredDataID" value="0x3620000" />
     <IDSymbol name="FileRunCodeCleanupID" value="0x3625000" />
     <IDSymbol name="FileRunRoslynTransformsID" value="0x3626000" />
     <IDSymbol name="FilesFindDifferentNamespaceID" value="0x3630000" />
     <IDSymbol name="FormatAndSaveID" value="0x3640000" />
     <IDSymbol name="IfStatementInvertID" value="0x3680000" />
     <IDSymbol name="IfStatementInvertAndDeleteEmptyID" value="0x3690000" />
     <IDSymbol name="JumpToMatchingBraceID" value="0x3730000" />
     <IDSymbol name="LambdaMethodConvertToStatementID" value="0x3735000" />
     <IDSymbol name="LineAlignID" value="0x3740000" />
     <IDSymbol name="LineAlignWithPreviousID" value="0x3750000" />
     <IDSymbol name="LineSplitID" value="0x3760000" />
     <IDSymbol name="LineSplitAndAlignWithCurrentLineID" value="0x3770000" />
     <IDSymbol name="LineSplitToFitAfterLinesCombineID" value="0x3780000" />
     <IDSymbol name="LinesCombineID" value="0x3790000" />
     <IDSymbol name="LinesCombinePreviousID" value="0x3800000" />
     <IDSymbol name="LinesMergeID" value="0x3805000" />
     <IDSymbol name="LinesSortID" value="0x3810000" />
     <IDSymbol name="LinesSortByNameID" value="0x3820000" />
     <IDSymbol name="LogicalExpressionSplitID" value="0x3850000" />
     <IDSymbol name="NamespaceQualifyAndEmitUsingID" value="0x3870000" />
     <IDSymbol name="NamespaceQualifyAndEmitUsingSubstitutionID" value="0x3880000" />
     <IDSymbol name="ParameterFixRenamedEntryID" value="0x3900000" />
     <IDSymbol name="ParensDeleteEnclosingID" value="0x3970000" />
     <IDSymbol name="ParensDeleteMatchingID" value="0x3980000" />
     <IDSymbol name="ParensInsertID" value="0x3990000" />
     <IDSymbol name="ParensInsertAroundSplitConditionalActionsID" value="0x4000000" />
     <IDSymbol name="ProjectRefreshID" value="0x4020000" />
     <IDSymbol name="QuoteDeleteID" value="0x4030000" />
     <IDSymbol name="ReturnStatementInvertID" value="0x4070000" />
     <IDSymbol name="ReturnStatementMergeID" value="0x4080000" />
     <IDSymbol name="SelectionSetOrStringSplitID" value="0x4130000" />
     <IDSymbol name="SemiColonDeleteID" value="0x4140000" />
     <IDSymbol name="SemiColonOrColonConvertToDashID" value="0x4150000" />
     <IDSymbol name="SemiColonOrColonConvertToPeriodID" value="0x4160000" />
     <IDSymbol name="SolutionCollapseID" value="0x4180000" />
     <IDSymbol name="SpacesDelExcessID" value="0x4190000" />
     <IDSymbol name="StringBuilderConvertToStringID" value="0x4210000" />
     <IDSymbol name="StringBuilderReplaceWithValueID" value="0x4220000" />
     <IDSymbol name="StringConcatToPlusID" value="0x4230000" />
     <IDSymbol name="StringExpressionSplitAtNewLineID" value="0x4240000" />
     <IDSymbol name="StringFormatReplaceID" value="0x4260000" />
     <IDSymbol name="StringFormatReplaceCopyArgumentID" value="0x4265000" />
     <IDSymbol name="StringFormatReplacePlaceholderID" value="0x4270000" />
     <IDSymbol name="StringSplitAndAlignWithCurrentID" value="0x4290000" />
     <IDSymbol name="TestID" value="0x4330000" />
     <IDSymbol name="TextToLowerCaseID" value="0x4360000" />
     <IDSymbol name="TextToUpperCaseID" value="0x4370000" />
     <IDSymbol name="TextTrueFalseTransformID" value="0x4380000" />
     <IDSymbol name="ThisInsertID" value="0x4400000" />
     <IDSymbol name="TwoSlashCommentDeleteLeadingWordsID" value="0x4630000" />
     <IDSymbol name="TwoSlashCommentFlagAsEmittedCodeID" value="0x4640000" />
     <IDSymbol name="TwoSlashCommentFlagAsEmittedCodeAndLowercaseFirstLetterID" value="0x4650000" />
     <IDSymbol name="TwoSlashCommentLowercaseFirstLetterID" value="0x4670000" />
     <IDSymbol name="TwoSlashCommentMergeID" value="0x4680000" />
     <IDSymbol name="TwoSlashCommentMergeAndLeaveDotAloneID" value="0x4690000" />
     <IDSymbol name="TwoSlashCommentNormalizeID" value="0x4700000" />
     <IDSymbol name="TwoSlashCommentSplitID" value="0x4720000" />
     <IDSymbol name="TwoSlashCommentSplitAndAddDashID" value="0x4730000" />
     <IDSymbol name="TwoSlashCommentSplitAndAddDotID" value="0x4740000" />
     <IDSymbol name="TwoSlashCommentUppercaseFirstLetterID" value="0x4750000" />
     <IDSymbol name="UsingAddID" value="0x4810000" />
     <IDSymbol name="UsingInsertID" value="0x4820000" />
     <IDSymbol name="UsingInsertSubstitutionID" value="0x4830000" />
     <IDSymbol name="UsingReplaceSubstitutionID" value="0x4840000" />
     <IDSymbol name="XmlFormatID" value="0x4900000" />
     <IDSymbol name="YPrefixDeleteID" value="0x4910000" />
     <IDSymbol name="ZZNewFileID" value="0x4920000" />
  </GuidSymbol>

  <GuidSymbol name="guidImages" value="{a3eccb9a-09d0-499a-9c4d-0e1835f5d957}" >
     <IDSymbol name="bmpPic1" value="1" />
     <IDSymbol name="bmpPic2" value="2" />
     <IDSymbol name="bmpPicSearch" value="3" />
     <IDSymbol name="bmpPicX" value="4" />
     <IDSymbol name="bmpPicArrows" value="5" />
  </GuidSymbol>

@LeeMSilver
Copy link
Author

Since some of my files got trashed I'm going to try again with a zip-file.
files.zip

@GrahamTheCoder
Copy link
Member

Thanks. Hopefully I'll get a chance to look into this at some point. My guess is that it'll relate to file encodings:
e.g. UTF with or without BOM, and the reader is possibly in the wrong mode for the encoding

@GrahamTheCoder
Copy link
Member

Turns out that for this functionality I'm making use of "AdditionalDocuments" - where I add resx files. But actually the problem here is that it already contained some text files from the microsoft.visualstudio.sdk.analyzers package (which are just text files, not xml). Should be easy enough to ignore such files 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants