yo指的是Yeoman 官網:http://yeoman.io/javascript
由於安裝yo須要nmp 所以 要先到node官網下載node並按裝css
安裝以後就能夠下一步了html
$ npm install -g yo generator-aspnet
安裝以後就能夠用yo aspnet來生成.net項目java
控制檯命令是node
yo aspnet
接下來出現以下頁面可供選擇git
選擇以後會出現以下頁面 讓你填寫項目名稱github
填寫以後 回車 就生成對應的項目web
而後就是docker
dotnet restore dotnet build dotnet run
固然最主要的是你可用 yo aspnet 建立class等typescript
建立class的命令以下
yo aspnet:class person
更多命令 可用如下命令獲取幫助
yo aspnet --help
yo aspnet:angularcontroller [options] <name> yo aspnet:angularcontrolleras [options] <name> yo aspnet:angulardirective [options] <name> yo aspnet:angularfactory [options] <name> yo aspnet:angularmodule [options] <name> yo aspnet:appsettings [options] yo aspnet:bowerjson [options] yo aspnet:class [options] <name> yo aspnet: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 [options] <name> yo aspnet:javascript [options] <name> yo aspnet:json [options] <name> yo aspnet:jsonschema [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 [options] yo aspnet:startup [options] yo aspnet:stylesheet [options] <name> yo aspnet:stylesheetless [options] <name> yo aspnet:stylesheetscss [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>
參考:https://msdn.microsoft.com/zh-cn/magazine/mt573713.aspx
https://github.com/omnisharp/generator-aspnet#sub-generators