Before installing the plugin, look at the dependency of the plugin address
Pre-requirements
- [node. js] (https://nodejs.org)
- [npm] (https://www.npmjs.com)
- [Yeoman] (http://yeoman.io)
- A Yeoman Generator of choice
Main Process:
1.VS Code Install yo plugin
Ext Install yo
vs Code Yo Plugin address:
Https://marketplace.visualstudio.com/items?itemName=samverschueren.yo
Enable after installation is complete
2. Create A. Net Core project
VS code Open the directory where you need to create a project such as: D:\Project\TestProject
F1 input yo
Click this option
In the Click *app
Click Web Application
Choose your preferred template type project according to your preference
I choose Semanticui Project
Enter Create Complete.
3. Run the project configuration
Run the dotnet Restore command
Run the dotnet build command
Run the dotnet Run command
CTRL + C Stop debugging
Browser opens http://localhost:5000
Get the Result.
4. If you do not want to compile the project with a command prompt. Create the project at the command prompt after you create the project for the first time . Then run debugging against the VS code project according to the following Configuration.
Close the Open vs Code and open the directory where the current project is located
Close the previous directory
Open the directory after you have made the catalog
finish, Click on the green triangle again to run
Do not make any changes above and continue to run the Point.
The browser then enters the corresponding address for site Access.
VS code install yo (Yeoman) plugin download. net core template code development