问题描述
您好,我正在寻找使用 yeoman 应用程序生成器或最少代码模板的说明,以创建集成 Entity Framework Core 和 Angular 2/4 的 Web 应用程序.
提供的答案最好使用自耕农应用程序生成器.此外,我不介意安装任何其他必要的工具来实现这一目标.
到目前为止,我还没有为所有三个包 - ASP.Net Core、Entity Framework Core 和 Angular 找到 yeomen 生成器.
但是,有一个官方的生成器模板
注意:它需要 dotnet SDK 1.0 版.0 或更高版本.如果你有旧版本,它会在你运行 yo aspnetcore-spa
时提示你先更新你的 dotnet SDK.
YouTube 视频
面向 Angular、React、Knockout 等开发人员的 ASP.NET Core - Steve Sanderson
Hello I am am looking for instructions using yeoman app generator or a template of the minimal amount of code to create a web application that integrates both Entity Framework Core and Angular 2/4.
Preferably the answer provided would use the yeoman app generator. Also I do not mind installing any other necessary tools to achieve this objective.
So far, I haven't find yeomen generator for all three packages - ASP.Net Core, Entity Framework Core and Angular.
However, there is an official generator template aspnetcore-spa for ASP.Net Core and Angular. Note: current generator is updated to Angular 4, although it said 2.
- npm install -g yo generator-aspnetcore-spa
- cd some-empty-directory
- yo aspnetcore-spa
NOTE: It requires dotnet SDK version 1.0.0 or later. If you have old version, it'll prompt you to update your dotnet SDK first when you run yo aspnetcore-spa
.
YouTube Video
ASP.NET Core for Angular, React, Knockout etc developers - Steve Sanderson
这篇关于使用 .NET Core 和 Angular 2/4 的 Web 应用程序的基础层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!