Skip to content

Throwing exception when opening in JetBrains Rider ide. #15

Description

@MairwunNx

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions