I'm trying to build a solution in Visual Studio (2022) for Mac and getting this error Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/aspnet_compiler.exe is invalid. The project's target framework on .Net 4.6.1.
The executable "aspnet_compiler.exe" is not there in the folder Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5 or in any of the subfolders under the directory /mono.
Please help if you have come across this issue. I can provide additional information if required.