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

Adding SkiaSharp.Views.Uno to Wpf project results in crash at runtime. #5991

Closed
3 of 24 tasks
MaksimNikonovOrioninc opened this issue May 12, 2021 · 1 comment
Closed
3 of 24 tasks
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@MaksimNikonovOrioninc
Copy link

Current behavior

On attempt to run WPF project that contains reference on SkiaSharp.Views.Uno application crashing at runtime with error

System.IO.FileNotFoundException: 'Could not load file or assembly 'SkiaSharp.Views.UWP, Version=2.80.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'

Expected behavior

Application should run

How to reproduce it (as minimally and precisely as possible)

Create a new uno solution with WPF project inside.
Add a reference to the SkiaSharp.Views.Uno nuget package to the Wpf project.

Workaround

No workaround

Environment

Nuget Package:

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other: SkiaSharp.Views.Uno

Nuget Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: 16.9.2)
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Also, Probably this issue is related #4713 and if I understood everything properly this pool request contains fixes for this issue mono/SkiaSharp#1634

so, question, is there is any plans to release that to public? In project, on whitch we work, actively used SkiaSharp and we need an ability to release app to some corporates customers as single exe file, because MS Store disabled on their side and there is no way to distribute application to them, the workaround in our case could be creation of WPF build!

@MaksimNikonovOrioninc MaksimNikonovOrioninc added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels May 12, 2021
@jeromelaban
Copy link
Member

jeromelaban commented May 13, 2021

Thanks for the report. You found it properly, mono/SkiaSharp#1634 is needed for this to work. At this point, we're waiting on the SkiaSharp team to accept the PR.

This issue is a duplicate of #4713, I'll close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants