I created a project with C# Windows Forms running on .NET 6.0.
我使用在.NET 6.0上运行的C#Windows窗体创建了一个项目。
I want to distribute the installation file using a Setup project. But I don't know what to choose from [Prerequisites...].
我想使用安装项目分发安装文件。但我不知道该从[先决条件...]中选择什么。
- .NET Desktop Runtime?
- .NET Runtime?
- Microsoft .NET Framework?
What should I choose?
我应该选择什么呢?
更多回答
优秀答案推荐
To generate a setup for your application in Visual Studio then follow the steps below to do it
要在Visual Studio中为您的应用程序生成安装程序,请执行以下步骤
Add a new Setup project to your solution by right clicking on the solution then click on Add then New Project from the sub context menu.
Search for a Windows Application Packaging Project template and click Next
Specify a name for the project and and hit Create, you may see a prompt for the minimum Windows platform versions that your application will support, specify accordingly.
After the setup project is created in Visual Studio then right click on it and choose Add and then Project Reference from the sub context menu
In the window that shows up, choose your project that you created first by checking on the box next to its name and hit OK
To generate a setup for the application, simply right click on the Setup project and hit Build
The setup file will be generated in the output path configuration specified in setup project
更多回答
我是一名优秀的程序员,十分优秀!