Base solution for your next web application
Open Closed

How to publish aspnetcore + angular application. #3908


User avatar
0
velu created

HI,

*we are using combined solution.

We are trying to publish the application on File system,

But we are facing some issues, Please guide me for publish the application.

*How to publish app combined?. *How to publish app separately ( server-side + angular UI)

Thanks


7 Answer(s)
  • User Avatar
    0
    bilalhaidar created

    Hey @velu,

    Have a look at this documentation: <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Angular#deployment">https://aspnetzero.com/Documents/Develo ... deployment</a>

    I am using the same template but separate projects. I've setup continuous integration with VS Team Services and Azure and working perfect for now.

    HTH, Bilal

  • User Avatar
    0
    velu created

    Hi,

    We try this, As well as we trying to publish host app using visual studio.

    We are facing the following problem.

    1. when we fire command " ng build -prod " On host directory. Error: You have to be inside an angular-cli project in order to use the build command.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Which version of angular-cli do you have installed globally ? It might be because of an older version. Upgrading it can solve your problem.

    Thanks.

  • User Avatar
    0
    velu created

    HI,

    Currently angular version in node-module showing 1.1.3

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    I was talking about global version of it. Just open a command promt in any folder and run "ng --version" to see it's version.

    Thanks.

  • User Avatar
    0
    velu created

    Hi.

    Snapshot of angular version:

    PS D:\02 Working\MoneyGuru Core\moneyguru\aspnet-core\src\moneyguru.Web.Host> ng --version Your global Angular CLI version (1.4.3) is greater than your local version (1.1.3). The local Angular CLI version is used.

    To disable this warning use "ng set --global warnings.versionMismatch=false".

    @angular/cli: 1.1.3 node: 8.0.0 os: win32 x64 @angular/animations: 4.2.4 @angular/common: 4.2.4 @angular/compiler: 4.2.4 @angular/core: 4.2.4 @angular/forms: 4.2.4 @angular/http: 4.2.4 @angular/platform-browser: 4.2.4 @angular/platform-browser-dynamic: 4.2.4 @angular/router: 4.2.4 @angular/cli: 1.1.3 @angular/compiler-cli: 4.2.4 PS D:\02 Working\MoneyGuru Core\moneyguru\aspnet-core\src\moneyguru.Web.Host>

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Can you share your application with us (<a href="mailto:[email protected]">[email protected]</a>)?