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
Clicked on Convert to C# on Project's context menu
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(Exceptione)
at System.Xml.XmlTextReaderImpl.Throw(Stringres,Stringarg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReaderreader,LoadOptionsoptions)
at System.Xml.Linq.XDocument.Parse(Stringtext,LoadOptionsoptions)
at ICSharpCode.CodeConverter.CSharp.VBToCSProjectContentsConverter.RebaseResxPaths(StringprojDirPath,StringresxDirPath,StringoriginalResx)
at ICSharpCode.CodeConverter.CSharp.VBToCSProjectContentsConverter.<GetAdditionalConversionResults>d__26.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16token)
at ICSharpCode.CodeConverter.CSharp.VBToCSProjectContentsConverter.<GetAdditionalConversionResults>d__26.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16token)
at System.Threading.Tasks.ValueTask`1.get_Result()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<Convert>d__19.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<Convert>d__19.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16token)
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<Convert>d__19.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16token)
at System.Threading.Tasks.ValueTask`1.get_Result()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProjectContents>d__18.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProjectContents>d__18.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16token)
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProjectContents>d__18.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16token)
at System.Threading.Tasks.ValueTask`1.get_Result()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<WithProjectFile>d__13.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<WithProjectFile>d__13.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16token)
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<WithProjectFile>d__13.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16token)
at System.Threading.Tasks.ValueTask`1.get_Result()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProject>d__12.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProject>d__12.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16token)
at ICSharpCode.CodeConverter.Shared.ProjectConversion.<ConvertProject>d__12.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16token)
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---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
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---Endof stack trace from previous locationwhereexception 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---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
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---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
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---Endof stack trace from previous locationwhereexception 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---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
at System.Threading.Tasks.ValueTask`1.get_Result()
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectUnhandled>d__25`1.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectUnhandled>d__25`1.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16token)
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectUnhandled>d__25`1.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16token)
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<WriteConvertedFilesAndShowSummaryAsync>d__17.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<WriteConvertedFilesAndShowSummaryAsync>d__17.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<>c__DisplayClass13_0`1.<<ConvertProjectsAsync>b__0>d.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__70.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
at ICSharpCode.CodeConverter.VsExtension.CodeConversion.<ConvertProjectsAsync>d__13`1.MoveNext()---Endof stack trace from previous locationwhereexception was thrown---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Tasktask)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Tasktask)
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
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
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 😄
Steps to reproduce
Error message shown
Details
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:
Phase 2 of 2:
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.dllApp.config
sourceextension.vsixmanifest
Lee01MacrosEX Lee01MacrosEX.VSPackage.resx
The text was updated successfully, but these errors were encountered: