VS2012 download address: https://www.Vevb.com/softs/73039.html
Below are the steps on how to publish an ASP.NET website to local IIS.
The first step is to right-click the website project in the Solution Manager and select the Publish button.
In the second step, select or import a publishing configuration file in the pop-up interface and select New in the drop-down box (there will be a link to the Microsoft AZURE service above, which is not needed here, just skip it)
The third step is to configure your website address in the connection options, and write localhost locally. (You need to create a new website in IIS in advance and configure the virtual path and other settings of the website)
Then click next
The fourth step, select the Release version settings here, and then next step
The last step is to click Publish and the website is published successfully!