Saturday, June 9, 2018

By default, the Angular template with ASP.Net Core comes with a very old Angular CLI version.

Hi, I am trying out angular with ASP.Net Core in Visual Studio 2017 but the problem is that the angular CLI I have installed on my machine is version 6.0.7 as shown here.

When I create a new ASP.Net Core Web project using the Angular template, inside the package.json file it says it is using angular-cli as version 1.6.3. This causes the following warning everytime I try to generate something:

"Your global Angular CLI version (6.0.7) is greater than your local version (1.6.3). The local Angular CLI version is used."

I cannot just change the version number in package.json because it requires the "angular-cli.json" file (plus a whole bunch of command issues with "ng serve") and I think the latest version uses "angular.json" and no idea how to change this file.

Why does the angular template have a very old CLI version by default? And is there a way to update it to use the global one?

By default, the Angular template with ASP.Net Core comes with a very old Angular CLI version. Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team