title | ms.date | ms.topic | helpviewer_keywords | ms.assetid | author | ms.author | manager | ms.workload | ||
---|---|---|---|---|---|---|---|---|---|---|
Deploy to a local folder |
01/29/2019 |
quickstart |
|
adb461c4-812a-4b8c-b2ab-96002379f6a9 |
mikejo5000 |
mikejo |
jillfra |
|
You can use the Publish tool to publish ASP.NET, ASP.NET Core, .NET Core, and Python apps to a folder from Visual Studio. For Node.js, the steps are supported but the user interface is different.
[!INCLUDE quickstart-prereqs]
Note
If you need to publish a Windows desktop application to a folder, see Deploy a desktop app using ClickOnce (C# or Visual Basic). For C++/CLR, see Deploy a native app using ClickOnce or, for C/C++, see Deploy a native app using a Setup project.
-
In Solution Explorer, right-click the project and choose Publish (or use the Build > Publish menu item).
-
If you have previously configured any publishing profiles, the Publish window appears. Select New.
-
In the Publish window, select Folder.
-
Enter a path or select Browse to specify a folder.
-
Select Publish. Visual Studio builds the project and publishes it to the specified folder. The project properties Publish pane appears, showing a profile summary.
-
To configure deployment settings, select Edit in the publish profile summary and select the Settings tab.
The settings you see depend on your application type. The following illustration shows example settings for an ASP.NET Core app.
For additional help to choose settings in .NET, see the following:
-
Configure options such as whether to deploy a Debug or Release configuration, and then select Save.
-
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.
For .NET apps: