'Need assistance using dnspy

So im trying to edit a il2cpp file from a unity game called bullet force and im getting tons of main.g.cs errors when trying to compile after editing even if i dont edit anything at all like if i just click edit and compile right after it still gets errors, is it possibly because im trying to edit a 32bit apk on a 64bit version of dnspy? Any help would be great as im still learning and none of the popular methods to fix it have worked so far, the last post i made somone asked for me to post the errors but every line has an error after trying to recompile so there is to many to list here, i feel like its trying to compile it in a different coding language like c# apposed to c++



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source