First, the project-right---generate--publish--publish to a specific file path (such as: F:/testui)
Second, the computer--right-click Management--internet Information Services (IIS) Manager--site--Right-click Add site
Add on Site name
and change the corresponding application pool to the. NET Framework v4.0, integration
Next, select the path where the project will be stored (the file address previously published by the program, such as: Testui), and the project file must be the root directory of the project.
Configure the site's IP address and port, if the machine has a separate IP address, you can choose a fixed IP, if the machine is just a test environment, you can complete the 127.0.0.1 settings, click OK.
For local testing, the hostname can not be filled (host name is generally written domain name, through the domain name resolution "Local domain name resolution is to find the host file" to find the IP address, thereby accessing the website)
The last step to set up a directory browse for a Web site-start
Finally, test whether the site was successfully deployed: Site name, right-click, select Manage Site, tap Browse.
Local IIS Publishing Web site