【问题标题】:WinForms Designer window in Visual Studio 2019 for .Net Core 3.1适用于 .Net Core 3.1 的 Visual Studio 2019 中的 WinForms 设计器窗口
【发布时间】:2020-05-09 14:16:07
【问题描述】:

我正在使用 Visual Studio 2019 在.Net Core 3.1 创建一个 WinForms 应用程序。

这就是我的应用的样子。

但在单击表单 Form1.cs 时,我看不到设计器窗口。而当我使用.Net Framework v4.7.1

创建相同的

我可以看到设计器窗口。

根据以下链接,使用 Visual Studio 2019,我不需要任何额外的配置/vsix 即可。

这是工具选项窗口的样子

没有看到任何此类启用它的选项。

请检查并建议在使用 .Net Core 3.1 时如何获取设计器窗口并使用工具栏设计 WinForms 应用程序

谢谢!

【问题讨论】:

  • 我认为您在 VS Options 中启用了设计器功能? Tools > Options > Environment > Preview Features and select the Use the preview Windows Forms designer for .NET Core apps option.
  • 您需要启用表单设计器。它仍然是一个预览功能
  • @Adriani6 我没有这样的选择。在帖子中添加了相同的附件
  • @PanagiotisKanavos 请查看更新后的帖子和上述评论。谢谢!
  • @Kgn-web 这表明您没有运行最新版本的 Visual Studio。该选项仅在版本 16.5 Preview 1 或更高版本中可用

标签: c# winforms .net-core visual-studio-2019 .net-core-3.1


【解决方案1】:

在 Visual Studio 2019 16.5 Preview 1 之前,您必须安装 .NET Core WinForms designer via a VSIX installer

从 Visual Studio 2019 16.5 Preview 1 开始,它是 Visual Studio 的一部分,但 you need to enable it.

【讨论】:

    【解决方案2】:

    除了启用 winforms 之外,请记住,并非所有 .Net Framework 控件都在 .Net Core 3.1 中受支持。您可以返回此链接了解更多详细信息。

    但是这里有一个简单的技巧来启用所有缺少的控件:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-02
      • 2019-05-27
      • 2020-08-27
      • 2022-11-13
      • 2020-07-01
      • 1970-01-01
      • 2023-01-19
      • 1970-01-01
      相关资源
      最近更新 更多