Base Layer of Web App that Uses .NET Core and Angu

2019-06-22 16:07发布

问题:

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.

回答1:

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