Deploying an Angular 2 application from Visual Studio 2017

前端 未结 5 1211
走了就别回头了
走了就别回头了 2021-02-03 13:04

I use Visual Studio 2017 and have developed two Angular 2 applications. The first is pure Angular 2 with no backend code (Data comes from wcf services). The second is an Angul

5条回答
  •  不思量自难忘°
    2021-02-03 13:51

    For the first type of application described by you as “pure Angular 2 with no backend code”, you can use the Angular CLI project template available on the Visual Studio Marketplace.

    The project is basically a customized ASP.NET Core project which shares the root folder with an Angular CLI application and is a design-time adapter between the traditional development experience in Visual Studio and the infrastructure provided by Angular CLI.

    The project supports the standard Publish feature provided by Visual Studio. Only the files produced by Angular CLI during the build, and no DLLs, are published to the target destination.

    Disclosure: I am the author of the template. The code is available on GitHub.

提交回复
热议问题