Visual Studio Angular template will not publish correctly

Gareth Walker 26 Reputation points
2025-03-09T12:37:30.3666667+00:00

When trying to publish an Angular project the wwwroot folder does not get created and published.

This happens with a completely new unmodified project using the template "Angular and ASP.NET core". I'm on Visual Studio 17.13.2.

I've tried publishing to Azure and just to a local folder, and in neither case do I get the wwwroot folder. I get a 404 after publish on Azure from this.

It appears the files don't seem to get copied to the \obj\Release\net8.0\PubTmp\Out\ folder from the dist folder.

I've got existing projects that work fine. I've created two new projects from the template and both have this issue. I've gone through and compared project files, angular.json, package.json etc etc and can't see anything that looks like it could cause this.

Tried different versions of node (20.12.2 and 22.14), no difference.

Thanks for any help.

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
40 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.