I found an unorthodox way that works:
I duplicated the file uc2.vcxproj into montest.vcxproj, the directory containing the source files, renamed the files to correspond to montest, modified the contents of montest. vcxproj to match the names of the source files and finally added the reference to montest.vcxproj to the boinc.sln file
After a couple of adjustments I compiled the .exe, transferred it to the boinc server, updated the versions, created a job and it was successfully processed on the boinc client!
Translated with DeepL.com (free version)