Visual Studio Angular template will not publish correctly
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.