I am using 5.3.2 and had the same issue, and found that I could create a project using the default name, changing nothing, and that worked, so I copied the files from it, into my project, and it worked.
Generating the VS 2022 code, I got 3 or 4 errors in the new projects I had named, why naming them changes the behavior of how they work, is unknown, but the code I copied over only had 2 errors in the same file, two throw Ex; which I changed to throw; so I know something is wrong, but not sure what.
I got it working but this is not a fix and I did not troubleshoot it anymore or look for a bug report.