如何在Visual Studio 2015中使用带有ASP.NET Core的Angular-Cli来设置asp.net angular 2项目? [英] how to set up asp.net angular 2 project using Angular-Cli with ASP.NET Core in Visual Studio 2015?
问题描述
我使用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.
这篇关于如何在Visual Studio 2015中使用带有ASP.NET Core的Angular-Cli来设置asp.net angular 2项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!