-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[8.0.100-preview.5.23269.37] global tool "dotnet-snow" cannot load libSkiaSharp.dll #86571
Comments
@elinor-fung this is very likely due to the RID graph changes:
The tool uses very old Avalonia/SkiaSharp, more recent versions will not have this problem as SkiaSharp switched to portable RIDs. Not sure if this warrants any changes on the design, but we might want to consider better errors (as it's really hard to match the failure to the change without knowing what's going on). |
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsDescriptionWhen launching dotnet-snow global tool, it cannot load the native assembly named "libSkiaSharp.dll" on dotnet sdk version 8.0.100-preview.5.23269.37. Reproduction StepsThe machine only has 8.0.100-preview.5.23269.37 installed and set DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX environment variable as 2. 1.Open cmd.exe form %windir%\System32 Expected behaviorA snowing window will be opened. Actual behaviorThe window doesn't be opened and will get following exception in command prompt window:
Regression?Yes. Verify Scenarios:
Known WorkaroundsNo response ConfigurationApplication Name: dotnet-snow Other informationFindings: @dotnet-actwx-bot @dotnet/compat
|
@Junjun-zhao - it's a by design breaking change: dotnet/docs#35398 Forcing apps to run on latest runtime via the |
Thanks @vitek-karas. @Junjun-zhao is part of the .NET Appcompat team and we use the roll forward switch for runtime compatibility testing with 3rd party apps. The goal is to identify any issues customers might come across with latest runtime and identify if it is an intentional breaking change and to understand the impact and provide mitigations/revisit the decision/reduce breaking nature etc. For example, it is valuable feedback that you have provided regarding better error handling so that it makes it easier for customers to figure out what change caused the break and what they need to do at their end to get their app working again. |
Thank you @vitek-karas for looking into this issue and your quickly response. @PriyaPurkayastha This is a .NET Core Global Tool that we can't upgrade it. dotnet-snow did not have new version Nuget package these years. |
Close it as it is by design according to the above comment.
|
Description
When launching dotnet-snow global tool, it cannot load the native assembly named "libSkiaSharp.dll" on dotnet sdk version 8.0.100-preview.5.23269.37.
Reproduction Steps
The machine only has 8.0.100-preview.5.23269.37 installed and set DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX environment variable as 2.
1.Open cmd.exe form %windir%\System32
2.Input ‘dotnet tool install –g dotnet-snow’
3.Press keyboard ‘Enter’
4.Input ‘dotnet-snow’
5.Press keyboard ‘Enter’
Expected behavior
A snowing window will be opened.
Actual behavior
The window doesn't be opened and will get following exception in command prompt window:
Regression?
Yes.
Verify Scenarios:
Known Workarounds
No response
Configuration
Application Name: dotnet-snow
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-8.0.100-preview.5.23269.37
Also can check this issue at https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1822944
Other information
Findings:
If we copy the libSkiaSharp.dll from "%userprofile%.dotnet\tools.store\dotnet-snow\1.0.1\dotnet-snow\1.0.1\tools\netcoreapp2.1\any\runtimes\win7-x64\native" to "%userprofile%.dotnet\tools.store\dotnet-snow\1.0.1\dotnet-snow\1.0.1\tools\netcoreapp2.1\any", the app launch successful.
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: