I’m testing the product features of vmp to evaluate if it meets my needs, but I’m running into a problem.
Use .net 8 and vs 2022 to generate a single file and use the latest version of vmp to protect it. The protected program cannot run and there is no error message.
I don’t provide the source code because you can reproduce the problem as follows:
Simply write a Hello World WPF application
When publishing, select self-contain and single file
Protect the generated application
You will find that the protected file cannot be started
It seems that I can only protect it by adding markers in the code, and cannot directly protect it using the GUI version of VMP.
Is VMP designed to not directly protect single files in. net 8, or will this feature be added in the future?
Your published application is just a container with required files of your application, so any modifications of this container will not protect your real code inside it. Just look at your application before publishig - usually it contains 2 files: EXE (required environment to execute dotnet) and DLL (your real code). The publishing process just merges 2 files into one, that’s all.