gpt4 book ai didi

c# - 如何在 Linux 上的 VSCode 中安装和使用 Winforms?

转载 作者:行者123 更新时间:2023-12-05 05:04:42 27 4
gpt4 key购买 nike

(.NET Core 版本 3.0.103(提交:b7ef045669),平台/操作系统:ubuntu linux 18.04-x64,Winforms 分支版本(日期):2020 年 3 月 26 日星期四 07:37:13 -0700,VSCode 1.43.2 )

我从 Github 克隆了当前版本的 Winforms,尝试使用适当的安装脚本 (build.sh) 但最后只收到错误消息 (I think it's a bug)。可能有人更成功?(尽管 Winforms Designer 仍然不能在 Linux 上的 VSCode 中工作,正如我从文档中获得的那样,应该有可能从控制台创建 Windows 窗体应用程序模板,将现有应用程序从 .NET Framework 移植到 .NET Core 等等)。那么有人可以分享您对此的经验吗?

最佳答案

Winforms 目前是 Windows-only technology在 .NET Core 运行时中。我还没有看到有人规避此限制的实例。

.NET Core (and in the future .NET 5 that is built on top of .NET Core) will be the future of .NET. We are committed to support .NET Framework for years to come, however it will not be receiving any new features, those will only be added to .NET Core (and eventually .NET 5). To improve Windows desktop stacks and enable .NET desktop developers to benefit from all the updates of the future, we brought Windows Forms and WPF to .NET Core. They will still remain Windows-only technologies because there are tightly coupled dependencies to Windows APIs. But .NET Core, besides being cross-platform, has many other features that can enhance desktop applications.

Mono Project支持Winforms,可以在linux上运行,但是我不知道如何在vscode上通过Mono开发Winforms。

关于c# - 如何在 Linux 上的 VSCode 中安装和使用 Winforms?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60912058/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com