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

Compile error #5

Open
atticus-lv opened this issue Nov 23, 2024 · 0 comments
Open

Compile error #5

atticus-lv opened this issue Nov 23, 2024 · 0 comments

Comments

@atticus-lv
Copy link

atticus-lv commented Nov 23, 2024

avalonia version: 11.1.4
windows 11

using Avalonia.Media.Imaging;
using Clowd.Clipboard;

public static class ClipboardHelper
{
    public static void CopyImageToClipboard(Bitmap image)
    {
        ClipboardAvalonia.SetImage(image);
    }
}
Error CS0012 : 类型“Bitmap”在未引用的程序集中定义。必须添加对程序集“Avalonia.Visuals, Version=0.10.13.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b”的引用。
Error CS1503 : parm 1: can not convert “Avalonia.Media.Imaging.Bitmap [C:\Users\atticus\.nuget\packages\avalonia\11.1.4\ref\net8.0\Avalonia.Base.dll]” to “Avalonia.Media.Imaging.Bitmap [Avalonia.Visuals, Version=0.10.13.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b]”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant