A major reason for the publishing functions in IIS 8.0 is for publishing from Microsoft's development tools, such as Visual Studio. Beginning in IIS 7.0 and extended in Visual Studio 2010 and 2012, publishing websites and applications directly from Visual Studio has become very convenient for developers, either for production or development systems. Publishing from Visual Studio, both 2010 and 2012, is similar in this regard; it involves using FTP or Web Deploy, both of which were described earlier in the chapter. Once they are installed, publishing websites and applications from Visual Studio is easy to configure.
Publishing a website created in Visual Studio 2012 using FTP is accomplished by opening Visual Studio 2012 and opening the website solution. Right-click on the root of the website in Solution Explorer and choose Publish Web Site, as shown in Figure 20.22.
This will open the Publish Web Site dialog, as shown in Figure 20.23, where you select the target location. Enter the path to the target as an FTP URL, similar to ftp://localhost/, using the FQDN of your FTP-enabled website, the host name, or the IP address the FTP service is bound to.
Click OK to continue. You will be asked for the login credentials ...