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.
Visual Studio 2017 installed with the appropriate workloads for your language of choice:
- ASP.NET: ASP.NET and web development
- Python: Python development
- Node.js: Node.js development
An ASP.NET Core, .NET Core, Python, or Node.js project. If you don’t already have a project, select an option below:
- ASP.NET: Follow Quickstart: Use Visual Studio to create your first ASP.NET Core web app, or use File > New Project, select Visual C# > .NET Core, then select ASP.NET Core Web Application. When prompted, select the Web Application (Model-View-Controller) template, make sure that No Authentication is selected, and then select OK.
- Python: Follow Quickstart: Create your first Python web app using Visual Studio, or use File > New Project, select Python, then select Flask Web Project.
Make sure you build the project using the Build > Build Solution menu command before following the deployment steps.
Deploy to a local folder
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 pane appears. Select Create new profile.
In the Pick a publish target dialog box, choose Folder.
Enter a path or select Browse to specify a local 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 Configure in the profile summary and select the Settings tab.
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.