This demo is for Windows PC and Visual Studio 2022
Before publishing you will need to make sure your PC installed the nodeJS and related npm package, also need to install angular CLI.
NodeJS installation page (we recommend using Windows Installer (.msi)):
https://nodejs.org/en/download/
Installing Angular CLI with npm
https://v17.angular.io/cli#installing-angular-cli
npm install -g @angular/cli @17
Below is an example of how to use Visual Studio to create and publish a .net angular project.
1. Create Angular ASP.NET Core Project
![](/support/AvatarHandler.ashx?radfile=%5cUsers%5c2%5cangualr%5fcore%5f2022%5f1%2epng)
2. You will see two projects in Visual Studio for Angular ASP.NET Core Project(you will need to make sure both nodejs and angular CLI are installed to your PC).
![](/support/AvatarHandler.ashx?radfile=%5cUsers%5c2%5cangualr%5fcore%5f2022%5f4%2epng)
3. The below screenshot is to show how to get web deploy info.
![](/support/AvatarHandler.ashx?radfile=%5cUsers%5c2%5cangualr%5fcore%5f2022%5f5%2epng)
4. From Visual Studio, choose AngularApp Server project to deploy, import publishing xml file.
![](/support/AvatarHandler.ashx?radfile=%5cUsers%5c2%5cangualr%5fcore%5f2022%5f6%2epng)
5. Successfully deploy.
![](/support/AvatarHandler.ashx?radfile=%5cUsers%5c2%5cangualr%5fcore%5f2022%5f7%2epng)
Article ID: 2284, Created: July 16 at 2:52 AM, Modified: July 16 at 3:48 AM