简体   繁体   English

Visual Studio 2017:Windows 窗体设计器未出现

[英]Visual Studio 2017 : Windows Form designer not appear

I'm developing a windows form designer.我正在开发一个 Windows 窗体设计器。 I'm not able to view form designer to add components.我无法查看表单设计器来添加组件。 How can I solve my problem?我该如何解决我的问题? resx is present. resx 存在。 I reset also devenv simone我也重置了 devenv simone

Try this:试试这个:

  • Shift+F7 press Shift+F7 按
  • in the Solution Explorer right click on the form and click "View Designer" option在解决方案资源管理器中右键单击表单并单击“查看设计器”选项

I had to install the winformsdesigner.setup.vsix first: 我必须先安装winformsdesigner.setup.vsix:

Enabling the designer To enable the designer, download and install the Windows Forms .NET Core Designer VSIX package. 启用设计器要启用设计器,请下载并安装Windows Forms .NET Core Designer VSIX程序包。 You can remove it from Visual Studio at any time. 您可以随时将其从Visual Studio中删除。 After you install the .NET Core Designer, Visual Studio will automatically pick the right designer (.NET Core or .NET Framework) depending on the target framework of the project you're working on. 安装.NET Core Designer之后,Visual Studio将根据您正在处理的项目的目标框架自动选择合适的设计器(.NET Core或.NET Framework)。

https://entwickler.de/online/windowsdeveloper/dotnet-core-windows-forms-designer-preview-1-579909977.html https://entwickler.de/online/windowsdeveloper/dotnet-core-windows-forms-designer-preview-1-579909977.html

@ Simnoe : I have face the same issue with VS 2017, but I was able to solve it. @ Simnoe:我在 VS 2017 中遇到了同样的问题,但我能够解决它。 What you got to do is right click on your form, for example if your form name is "Form1.cs".您要做的是右键单击您的表单,例如,如果您的表单名称是“Form1.cs”。 Right click on it and you'll see an option called "Include in project", just click on it, this should solve your problem.右键单击它,您会看到一个名为“包含在项目中”的选项,只需单击它,这应该可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM