Angular 2 cli integration in visual studio 2015

南楼画角 提交于 2019-12-04 02:45:07

A view of your file structure would be helpful. It sounds like you're simply using Visual Studio as an IDE. If that is correct, I wouldn't worry about using the green play button. You have to run task for it to build, so Task Runner will be your friend. That or just open up console and do you commands from there.

I personally prefer just using an IDE, like visual studio code, but if you must use VS, then I recommend the link below.

Here is a good reference for running an Angular 2 project in Visual Studio without putting it in an ASP.NET project

Here is a more detailed example of How To Use Angular CLI With Visual Studio 2017 which also works with Visual Studio 2015.

It details on how to set the project's pre-build build event to run ng build. Also, it shows how to copy the CLI output into an ASP.NET web application using the packages.json file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!