Hendry Susanto
Hendry Susanto

Reputation: 39

how to publish in visual studio code to IIS server

i'm starting to learning Angular 2 in visual studio code. When i'm searching about a way to publish my web project, everywhere I search is using GitHub and Azure. Is there no way to publish it to local IIS server??

Upvotes: 3

Views: 9575

Answers (1)

Ibrahim Salem
Ibrahim Salem

Reputation: 11

-Build your Angular2 app using ng build --prod --aot

-Copy contents of the dist directory, to the root of your ASP.NET project. if you don't have create an empty project in VS 2017 (Or any version of the big VS)

-Use web deployment in VS 2017

Note: If you are finding a hard time loading html resources, then check base url tag in index.html Hope it helps

Upvotes: 1

Related Questions