Create a. NET project with Yo ASPNET

Source: Internet
Author: User

Yo is referring to yeoman official website: http://yeoman.io/

Because the installation of Yo needs the NMP, so you have to go to the node website to download node and press Install

After installation, the next step can be made.

$ npm install-g yo generator-aspnet

After installation, you can use Yo ASPNET to generate. NET projects

Console commands are

Yo ASPNET

Next you will see the following pages to choose from

After selecting the following page will appear to let you fill in the project name

After filling in, enter to generate the corresponding project

Then there is

dotnet Restoredotnet Builddotnet Run

Of course the main thing is you can use Yo ASPNET to create class and so on

The command to create class is as follows

Yo aspnet:class person

More commands get help using the following command

Yo ASPNET--help

 

Yo aspnet:angularcontroller [options] <name> yo aspnet:angularcontrolleras [options] <name> yo Aspnet:angul ardirective [options] <name> yo aspnet:angularfactory [options] <name> yo aspnet:angularmodule [options] &lt ;name> yo aspnet:appsettings [options] yo aspnet:bowerjson [options] yo aspnet:class [options] <name> yo aspn et:coffeescript [options] <name> yo aspnet:dockerfile [options] yo aspnet:gitignore [options] Yo aspnet:gruntfile [Options] Yo aspnet:gulpfile [options] <name> yo aspnet:htmlpage [options] <name> yo aspnet:interface [opt Ions] <name> yo aspnet:javascript [options] <name> yo aspnet:json [options] <name> yo aspnet:jsonsche Ma [options] <name> yo aspnet:middleware [options] <name> yo aspnet:mvccontroller [options] <name> yo Aspnet:mvcview [options] <name> yo aspnet:nuget [options] yo aspnet:packagejson [options] yo Aspnet:program [opt Ions] Yo Aspnet:startup [Options] Yo aspnet:stylesheet [options] <name> yo aspnet:stylesheetless [options] <name> yo aspnet:styles heetscss [options] <name> yo aspnet:taghelper [options] <name> yo aspnet:textfile [options] <name> yo Aspnet:tfignore [Options] yo aspnet:typescript [options] <name> yo aspnet:typescriptconfig [options] <name> Yo aspnet:typescriptjsx [options] <name> yo aspnet:usersecrets [options] <name> yo aspnet:webapicontroller [Options] <name>

Reference: Https://msdn.microsoft.com/zh-cn/magazine/mt573713.aspx

Https://github.com/omnisharp/generator-aspnet#sub-generators

Create a. NET project with Yo ASPNET

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.