Hand teach you C # project production installation

zhaozj2021-02-16  65

1. Open your .NET, right click on your project (Solution), select Add New Project (Add New Project)

2. Select the installation and deployment project web installation item (or Windows installation item)

3. The window of the VS will display the file system, click on the "Web Application Folder" of the left column, right click "Web Application Folder", select "Add Item Output", and select the main output and content files.

4. Your project will add a new YouSetupname project, which is the installation project.

5. Because .xml ,.rpt, .gif file cannot be automatically added to the project, so you have to add it. In the Solution Explorer, right-click YOUSETUP Project (your installation item name), select "Add File", then add your.rpt, .xml, .gif file

6. If you use Crystal Report, you will add Crystal Reprot's support file. In the Solution Explorer, right-click YouSetup Project (your installation item name), select Add Merger Module, found in the window, and select C: / Program Files / Common Files / Merge Modules / DotNetCrystalReports.msm, Open, join

7. Right-click on the "File System on Target", select the properties, in the Properties window, set the productName to "I have the item name you want to package"

8. Right-click on "Web Application Folder", select the properties, in the Properties window, set the defaultdocument to "your default login page", "start page"

9. Check your YouSetupname project, press right-click, select "Generate"; or select "Generate YourTupFileName" in the "Generation" of the main menu

10 YourSetupFileName The following will have two folders Debug and Release, inside .exe and .msi are the installation file you want, run .exe, you can install it.

转载请注明原文地址:https://www.9cbs.com/read-15366.html

New Post(0)