用 yo aspnet 產生.net項目

來源:互聯網
上載者:User

標籤:

yo指的是Yeoman 官網:http://yeoman.io/

因為安裝yo需要nmp 因此 要先到node官網下載node並按裝

安裝之後就可以下一步了

$ npm install -g yo generator-aspnet

安裝之後就可以用yo aspnet來產生.net項目

控制台命令是

yo aspnet

接下來出現如下頁面可供選擇

 

 

選擇之後會出現如下頁面 讓你填寫項目名稱

填寫之後 斷行符號 就產生對應的項目

然後就是

dotnet restoredotnet builddotnet run

當然最主要的是你可用 yo aspnet 建立class等

建立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

用 yo aspnet 產生.net項目

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.