如何在Visual Studio 2015中使用带有ASP.NET Core的Angular-Cli来设置asp.net angular 2项目?

问题描述:

我使用angular-cli设置了angular 2项目,并且可以与我完美配合.可以使用任何方法将此项目添加到Visual Studio中的asp.net核心

I set up angular 2 project using angular-cli and it works prefect with me. there is any way of add this project to asp.net core in visual studio

我将Angular 2项目移至ASP.NET Core项目的根目录,然后将Angular项目src文件夹的内容移至wwwroot-并重命名对src文件夹的所有引用.

I would move the Angular 2 project into the root of the ASP.NET Core project, and then move the contents of the Angular project's src folder into wwwroot - and rename any reference to the src folder.

由于wwwroot用于客户端应用程序,而Angular 2正是这样,所以这很合适.

This fits nicely together since wwwroot is for the client application, and Angular 2 is exactly that.