Two solutions are required for packaging.
1) the packaged website should have no source file (*. CS)
2) dotnetframeworker should be packed during the packaging process, so that during the installation process
Automatically identifies if FW exists on the target computer. If not, install FW first.
Packaging steps:
1) install webdeployment. This is why Microsoft makes up for the automated Web packaging of vs2005.
Publish a plug-in that can compile a website. The result is that no source file can be run.
2) create a web application
Program
3) align with the Web application ticket right --> Add webdeployment project, OK
4) Select "webdeployment project ticket"> "generate" to generate a website without *. CS.
5) Add a web installation project
6) Press F4. in the displayed Properties window, enter information about the installation project, including the installation title, software author, and so on.
7) Select a web installation project, click "single right", click "properties", and select "Download necessary system components from the same location as my application ".
8) Select "Web application folder" ---> single right --> Add --> project output --> select the project previously generated through webdeployment project --> OK
9) Select a web installation project, click "single right", and click "generate". In the debug folder of the generated folder, you will see
Dotnetfx,setup.exe. weijinsetup. MSI three installation files
10) engrave these three installation files into a CD and install them to the target file.