简体   繁体   中英

How can I create an .EXE file from .NET Framework 4.8 project?

As the question states, How can I create an.EXE file from .NET Framework 4.8 project? This is a Windows Forms Application.

When I publish my application, I get the following files/directory created:

在此处输入图像描述

I can run the setup.exe file to download the application, and from there can open the application from my system or through the TapeRedGreen.application file.

Many other users have had an issue in their project properties where there output type is set to Class Library, but I can verify mine is set correctly:

在此处输入图像描述

I would like to instead have a TapeRedGreen.exe file that will run the program/application, avoiding having to run the setup/install.exe. How can I do this?

You can just build the application and then look in the output folder (under the bin folder of your project).

The target folder will have the same name of the configuration selected for the build (debug or release).

The last row of the output console will give you the full path.

A quick tutorial from Microsoft:
https://learn.microsoft.com/en-us/visualstudio/ide/walkthrough-building-an-application?view=vs-2022

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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