Stange error on content building

When i build for android 9 time out of ten I get the error The process cannot access the file ‘C:\Users\andy\Source\Repos\NewEngine\NewEngine\NewEngine.Core\Content\obj\Android\net8.0-android\NewEngine.mgcontent’ according to online googling its an issue with the .net 9 version but in my test project I am using release build with .net 8 build fine for desktopGL any help appreciated

The issue is with improvements with multi-threading with dotnet 9.

When building some platforms such as Android, this can “mess things up” with access to files that have not finished processing, especially the content pipeline.

The solution is to simply disable multi-threading when building as follows with the -m:1 argument:

dotnet build -m:1

Hope this helps