C
C#3y ago
gumbarros

Help with WPF app

It's this microsoft store app https://apps.microsoft.com/store/detail/c-to-dart-transpiler/9P5BNFRSMQ00?hl=pt-br&gl=br, it's not mine but I really need to use it. I found the error on the event viewer. How can I solve this without the source code?
Get $C# to Dart Transpiler from the Microsoft Store
This tool will transpile your C# code to Dart language in few seconds. Use the tool e.g. for porting your Xamarin/UWP project to Flutter. C# to Dart transpiler will save you days or even weeks/months of manual work! The tool is using the .NET Compiler Platform ("Roslyn") to achieve the best possible translation result. Usage instructions:...
2 Replies
gumbarros
gumbarrosOP3y ago
The error:
```
Application: CsToDartTranspiler.WPF.exe
CoreCLR Version: 5.0.1321.56516
.NET Version: 5.0.13
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'CsToDartTranspiler.WPF.MainWindow' that matches the specified binding constraints threw an exception.
---> System.InvalidOperationException: No instances of MSBuild could be detected.
Try calling RegisterInstance or RegisterMSBuildPath to manually register one.
at Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults()
at A.b..ctor()
at CsToDartTranspiler.DartTranspiler..ctor(ILogListener logListener)
at CsToDartTranspiler.WPF.TranspilerViewModel..ctor()
at CsToDartTranspiler.WPF.MainWindow..ctor()
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
Message to long for discord, f*ck Nitro

```
Application: CsToDartTranspiler.WPF.exe
CoreCLR Version: 5.0.1321.56516
.NET Version: 5.0.13
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'CsToDartTranspiler.WPF.MainWindow' that matches the specified binding constraints threw an exception.
---> System.InvalidOperationException: No instances of MSBuild could be detected.
Try calling RegisterInstance or RegisterMSBuildPath to manually register one.
at Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults()
at A.b..ctor()
at CsToDartTranspiler.DartTranspiler..ctor(ILogListener logListener)
at CsToDartTranspiler.WPF.TranspilerViewModel..ctor()
at CsToDartTranspiler.WPF.MainWindow..ctor()
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
Message to long for discord, f*ck Nitro

Solved installing the SDK, I don't know how to speak thiks in english because I'm DRUNK. Mas lendo o log descobri que talvez instralando a SDK da versão que o log falou que faltava resolveria e PAN resolveu
Want results from more Discord servers?
Add your server