How to create a simple React and .NET Core Application in Visual Studio Code
Prerequisites
.NET SDK
You can check your .NET Core version with this command.
dotnet --version
Open a new terminal with the top menu with Terminal -> New Terminal
Move into the directory where you want the application and type this command.
dotnet new react -o MyReactCoreApp1
Change to the directory newly created and open the new code base with this command.
cd MyReactCoreApp1
code .
This will open the new code in a new window.
When you first open the code you’ll get a popup saying required assets to build and debug applications are missing, Add them? Click Yes.
This will create the launch.json and task.json files in the .vscode folder.
Running the Application
Click on the Run menu option then select either Start Debugging or Run Without Debugging.
This will launch a new browser window.