WPFSharp.Globalizer icon indicating copy to clipboard operation
WPFSharp.Globalizer copied to clipboard

Throwing exception when opening in JetBrains Rider ide.

Open MairwunNx opened this issue 5 years ago • 0 comments

When open XAML Preview for my window, i get exception what caused by your library.


WPFSharp.Globalizer: Latest Version JetBrains Rider: 2019.1.1 Build: #RD-191.6733.985, built on May 1, 2019 Windows: 10, 1809


JetBrains.ReSharper.Features.XamlRendererExternal.WPF.WpfPreview+WpfPreviewCreationException: Failed to build preview ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at WPFSharp.Globalizer.GlobalizedResourceExtension.ProvideValue(IServiceProvider inServiceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   at System.Xaml.XamlObjectWriter.Logic_ProvideValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndObject()
   at System.Xaml.XamlObjectWriter.Dispose(Boolean disposing)
   at System.Xaml.XamlWriter.System.IDisposable.Dispose()
   at JetBrains.ReSharper.Features.XamlRendererExternal.WPF.PreviewXamlWriter`1.Dispose(Boolean disposing)
   at System.Xaml.XamlWriter.System.IDisposable.Dispose()
   at JetBrains.ReSharper.Features.XamlRendererExternal.WPF.WpfPreview.Create(String xaml, FileSystemPath assembliesRoot, FileSystemPath primaryAssemblyPath, IDictionary`2 aliasToAssembliesMap)
   --- End of inner exception stack trace ---
   at JetBrains.ReSharper.Features.XamlRendererExternal.WPF.WpfPreview.Create(String xaml, FileSystemPath assembliesRoot, FileSystemPath primaryAssemblyPath, IDictionary`2 aliasToAssembliesMap)
   at JetBrains.ReSharper.Features.XamlRendererExternal.XamlPreviewSessionProcessor.<Initialize>g__OnXamlMarkupUpdate|7_0(XamlMarkup markup)

MairwunNx avatar May 20 '19 13:05 MairwunNx