Skip to main content

How to deploy React and ASP.NET Core Application using Visual Studio

This article contains steps how to publish React and ASP.NET Core Web Application using Visual Studio.

ASP.NET / .NET freehosting
If you don't already have our ASP.NET / .NET freehosting, sign up for FREE at https://MonsterASP.net/.

1) Initial Setup

Create website from our hosting Control panel

Control panel - create website

2) Creating Project in Visual Studio

Select React and ASP.NET Core template and click to Next.

react_aspnet_step1.png

In Additional informations leave default settings and click to Create.

react_aspnet_step2.png

3) Download WebDeploy publish profile

First you need to activate WebDeploy account in our hosting Control panel and then download WebDeploy publishing profile (.publishSettings).

Control panel - activate webdeploy

4) Build your Project

Template will create two projects one client and one server.
For building and publishing always use server project. Right-click on server project in Solution Explorer and select "Rebuild."

react_aspnet_step3.png

5) Prepare publish Project

Right-click on server project in Solution Explorer and select "Publish."

react_aspnet_step4.png

Click on Import profile and select WebDeploy profile file (.publishSettings) which you downloaded from hosting Control panel.

react_aspnet_step5.png

5) Publish to server

In final step click "Publish" button. After this action will be your ASP.NET Core Web App project published to your Website.

react_aspnet_step6.png

6) Congratulations, it's done.

Open result in your web browser.

react_aspnet_step7.png