Base solution for your next web application
Open Closed

Update to v7.0.0 and Angular publish not working. (wwwroot/dist not copyed to wwwroot?) #7280


User avatar
0
mika created

Hi

Angular (single solution) & Core

I have been updating our system to V7.0.0 and got everything to work locally. Then I published project to our staging server at Azure as usual, but Angular part was not working. It actually was the old version of angular project! I was able to tell that serverside was updated.

I noticed that wwwroot/dist is updating, but angular project was previously loaded from wwwroot and not wwwroot/dist. I copied wwwroot/dist to wwwroot and it started to work.

So there has been some changes that I haven't noticed. Can you help me with this?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mika

    You have to manually copy the content generated in wwwroot/dist folder to wwwroot/ folder. We were doing this automatically but the copy command doens't work non-windows OSs.

    But, as I remember this has been done long time ago.

  • User Avatar
    0
    mika created

    Hi @ismcagdas

    Can you tell me where this automatic copying is done, I use windows OS.

    This has been working for me, but now after updating, it stopped to work. I suspect that I may have done something wrong during the update if you have not changed anything.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mika

    The old version should have a after publish script in the csproj file of Host project. You can cehck it in your source control.

  • User Avatar
    0
    mika created

    Hi

    Thank you, I found the typo in csproj file.. Mika