简体   繁体   English

属性下拉列表中不再提供发布“Windows Forms 应用程序”的选项

[英]Option to Publish a 'Windows Forms Application' is no longer available in properties drop down

When I create Visual Basic or C# windows forms application everything runs as expected.当我创建 Visual Basic 或 C# windows forms 应用程序时,一切都按预期运行。 However the Build Menu Publish option now list Publish Selection rather than Publish [App Name] :但是,Build Menu Publish 选项现在列出Publish Selection而不是Publish [App Name] 在此处输入图像描述 In addition the Properties page for the application in not in the expected format.此外,应用程序的属性页不是预期的格式。 Like this:像这样: 在此处输入图像描述

Rather than expected like this:而不是像这样预期: 在此处输入图像描述 and it no longer includes the expected target frameworks (.NET Framework 4.7.2) or Application types (Windows Forms Application).并且它不再包含预期的目标框架 (.NET Framework 4.7.2) 或应用程序类型(Windows Forms 应用程序)。

The publish process uses an unfamiliar interface and does not create the setup.exe and related files.发布过程使用不熟悉的界面并且不创建 setup.exe 和相关文件。

I tried to find a difference in any setting between existing projects and the new ones but could find nothing.我试图在现有项目和新项目之间的任何设置中找到差异,但一无所获。

These two application projects face different platforms.这两个应用项目面向不同的平台。

One is the.Net Framework framework, which is mainly applicable to the windows platform.一种是.Net Framework框架,主要适用于windows平台。

One is the.Net core framework platform, which is suitable for cross-platform.一种是.Net核心框架平台,适合跨平台。

When you create a new program, .Net Framework will specifically mark for example:当你创建一个新的程序时,.Net Framework 会特别标记例如:

在此处输入图像描述

For.Net core publishing, as Jimi said, you can refer to Tutorial: Publish a .NET console application using Visual Studio .对于.Net core的发布,如极米所说,可以参考教程:使用Visual Studio发布一个.NET控制台应用程序

For.Net core and.Net Framewokr, you can also refer to this issue .对于.Net core和.Net Framewokr,也可以参考这个issue

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

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