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)
-
0
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.
-
0
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.
-
0
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.
-
0
Hi
Thank you, I found the typo in csproj file.. Mika