Publish a Web app to a web site using Visual Studio

You can use the Publish tool to publish ASP.NET, ASP.NET Core, .NET Core, and Python apps to a website from Visual Studio. For Node.js, the steps are supported but the user interface is different.


Publish to a Web site

  1. In Solution Explorer, right-click the project and choose Publish (or use the Build > Publish menu item).

    The Publish command on the project context menu in Solution Explorer

  2. If you have previously configured any publishing profiles, the Publish pane appears. Select Create new profile.

  3. In the Pick a publish target dialog box, choose IIS, FTP, etc.

    Choose IIS, FTP, etc.

  4. Select Publish. The profile publish settings dialog box opens.

    Choose Folder

  5. In the Publish method field, choose a method such as Web Deploy or FTP. The settings that you see next correspond to your publishing method. Web Deploy simplifies deployment of Web applications and Web sites to IIS servers, and must be installed as an application on the server. Use the Web platform installer to install it.

  6. Configure required settings for the publish method and select Validate Connection. If the server or target is available and your settings are correct, a message that indicates the connection is validated, and you're ready to publish.

    Validate your connection

  7. Select Settings to configure other deployment settings, such as whether to deploy a Debug or Release configuration, and then select Save. If you're debugging remotely, a Debug configuration is required.

  8. To publish, select Publish. The Output window shows deployment progress and results.

Next steps

In this quickstart, you learned how to use Visual Studio to create a publishing profile. You can also configure a publishing profile by importing publish settings.