-
Notifications
You must be signed in to change notification settings - Fork 54
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
Cannot implicitly convert type 'AdvancedSharpAdbClient.Models.Framebuffer' to 'System.Drawing.Image' #99
Comments
Because it need System.Drawing.Common and I removed it because it only supports Windows since .NET 7. You can change target to net8.0-windows10.0.17763.0. |
Hi @wherewhere Thank you very much for your prompt reply! I have replaced:
by:
And this issue is not reproducible. Is there any plan to remove System.Drawing.Common dependency once that it is now Windows Only? Thanks in advanced, |
But System.Drawing.Common is a part of desktop extension. .net-windows does not contains it... |
If so, why not support the System.Drawing.Common for net8.0-windows fully instead of net8.0-windows10.0.17763.0 only if it is part of desktop extension? |
Because I also add the supports for WinRT like this: |
You can create an extension with this codes by yourself. |
Hi @wherewhere Do you have any plan to add this implementation in the next AdvancedSharpAdbClient package to make it is possible to convert the Framebuffer to System.Drawing.Image on net8.0-windows? Thanks in advance, |
No |
If so, could you please update the README documentation to say that this is not working when use the net8.0-windows as TargetFramework: https://github.com/SharpAdb/AdvancedSharpAdbClient#getting-a-screenshot |
Describe the bug
It is not possible convert implicitly convert type 'AdvancedSharpAdbClient.Models.Framebuffer' to 'System.Drawing.Image' when build using .NET 8.0.
Steps to reproduce the bug
Try implicitly convert type 'AdvancedSharpAdbClient.Models.Framebuffer' to 'System.Drawing.Image' using 'AdvancedSharpAdbClient for .NET 8.0:
Expected behavior
It should be possible convert implicitly convert type 'AdvancedSharpAdbClient.Models.Framebuffer' to 'System.Drawing.Image' like it is possible to do when build using .NET Framework 4.8.1.
Screenshots
NuGet package version
3.1.10
.NET Platform
.NET 8
Platform type
Windows
System version
Windows 11 x64
IDE
Visual Studio 2022
Additional context
This issue is NOT reproducible when build using .NET Framework 4.8.1.
The text was updated successfully, but these errors were encountered: