Home > Software design >  Option to Publish a 'Windows Forms Application' is no longer available in properties drop
Option to Publish a 'Windows Forms Application' is no longer available in properties drop

Time:01-17

When I create Visual Basic or C# windows forms application everything runs as expected. However the Build Menu Publish option now list Publish Selection rather than Publish [App Name]: enter image description here In addition the Properties page for the application in not in the expected format. Like this: enter image description here

Rather than expected like this: enter image description here and it no longer includes the expected target frameworks (.NET Framework 4.7.2) or Application types (Windows Forms Application).

The publish process uses an unfamiliar interface and does not create the setup.exe and related files.

I tried to find a difference in any setting between existing projects and the new ones but could find nothing.

CodePudding user response:

These two application projects face different platforms.

One is the .Net Framework framework, which is mainly applicable to the windows platform.

One is the .Net core framework platform, which is suitable for cross-platform.

When you create a new program, .Net Framework will specifically mark for example:

enter image description here

For .Net core publishing, as Jimi said, you can refer to Tutorial: Publish a .NET console application using Visual Studio.

For .Net core and .Net Framewokr, you can also refer to this issue.

  • Related