Error building IL2CPP Unity 2020.3.41f1 project with FMOD 2.02.09

Hi!
When trying to build IL2CPP Unity 2020.3.41f1 project with FMOD 2.02.09 getting error in the console and build fails.
Tested with both .NET 4.x and .NET Standard 2.0 api compatibility levels. Mono builds fine. Nothing else in the project, clean scene.
Also tested with FMOD 2.02.10 - same issue.

Full error code: https://pastebin.com/MSJTYcU2

Apparently this issue happens when Visual Studio 2022.17.4 is installed. Unity knows about this bug and it should be fixed in Unity 2020.3.42f1
Issue tracker with temporal solution in the bottom comment: https://issuetracker.unity3d.com/issues/il2cpp-windows-builds-fails-when-using-vs-2022-17-dot-4-0-preview
More info here: https://forum.unity.com/threads/workaround-for-building-with-il2cpp-with-visual-studio-2022-17-4.1355570/

1 Like