我正在运行UbuntuBudgie20.04,并通过CrossOver (20.0.4) /葡萄酒定期运行CrossOver应用程序(我创建的应用程序)。我刚刚在WinForms 5.0中构建了一个小型的.Net实用程序,并试图在CrossOver中运行它。未显示文本的消息框。我想,好吧,.Net 5.0还没有安装在瓶子里。然而,.Net 5.0似乎不在需要安装的列表中。
然后,我看到.Net 5.0被设计成在任何地方都能工作(比如.Net核心)。因此,我跟踪这些指示并在我的Ubuntu上安装了dotnet。
当我打字时
dotnet --list-runtimes
我得到了
Microsoft.AspNetCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
然后我试着运行这个应用程序
It was not possible to find any compatible framework version
The framework 'Microsoft.WindowsDesktop.App', version '5.0.0' was not found.
- No frameworks were found.
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.WindowsDesktop.App&framework_version=5.0.0&arch=x64&rid=ubuntu.20.04-x64
当我浏览到该链接时,它在这里重定向:https://dotnet.microsoft.com/download/dotnet/5.0/runtime/?utm_source=getdotnetcore&utm_medium=referral和我看到下载.net for Windows或Linux。但是,对于Windows,我可以下载桌面应用程序和仅用于Linux的服务器应用程序。
当我在这里查看:https://dotnet.microsoft.com/download/dotnet/6.0时,它显示桌面框架仅适用于Windows
我很困惑,因为dotnet给我的信息意味着桌面框架可以用于Ubuntu。然而,该网站使它看起来是不真实的。
有办法在Ubuntu上安装桌面框架吗?还是我应该在.Net 4.8中重做这个实用程序并通过CrossOver运行它?
发布于 2021-06-16 11:46:08
您不能在linux https://github.com/dotnet/core/issues/4743中运行WPF和C0
。
https://askubuntu.com/questions/1320151
复制相似问题