Create a sample ASP core application with vue.js in visual studio
By default visual studio 2017 does not have a Vue template to create a project, But this is not a big deal we can add the template and create the project from command line interface by following the below steps.
- Create a folder/directory, where you want to create your project.
- Open command line interface and navigate to the newly create folder.
- Install template.
dotnet new --install Microsoft.AspNetCore.SpaTemplates::* - Create a project from template.
dotnet new vue (For typescript)
dotnet new vuejs(For javascript) - Install the dependencies.
npm install - Open the folder and double click the .csproj file in visual studio.
- Press F5 to run the project.
Comments
Post a Comment