Microsoft.Common.CurrentVersion.targets(3262, 5): [MSB4216] Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "NET" and architecture "x86". Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files\dotnet\sdk\6.0.400\MSBuild.dll" exists and can be run.
Microsoft.Common.CurrentVersion.targets(3284, 7): [MSB4028] The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type.
The project works just fine in Visual Studio