make sure you're using this version of dnspy first, the more recent versions of vt aren't as compatible with the older versions of dnspy anymore and it should fix some compiling errors you may run into https://github.com/dnSpyEx/dnSpy/releases/
try that first, if that didn't work then I can't tell you exactly what's wrong from the information you gave me since I would need more specific info, my guess is that it would either be a syntax error or not formatting your code properly