Deploy to a local folder – Visual Studio


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


Deploy to a local folder

  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 Folder.

    Choose local folder as a publish taget

  4. Enter a path or select Browse to specify a local folder.

  5. Select Publish. Visual Studio builds the project and publishes it to the specified folder. The project properties Publish pane appears, showing a profile summary.

    Publish property pane showing a profile summary

  6. To configure deployment settings, select Configure in the profile summary and select the Settings tab.

    Profile settings

  7. Configure options such as whether to deploy a Debug or Release configuration, and then select Save.

  8. To republish, select Publish.

Deploy the published files in any way you like. For example, you can package them in a .zip file, use a simple copy command, or deploy them with any installation package of your choice.

Next steps