Hi Leedo
I would like to know why you should encrypt your application and how you can encrypt after build and before deployment? Do you want to make your application safer? Actually, ClickOnce use authenticode to make itself safely.
Authenticode is a Microsoft technology that uses industry-standard cryptography to sign application code with digital certificates that verify the authenticity of the application's publisher. By using Authenticode for application deployment, ClickOnce helps prevent the phenomenon of a "Trojan Horse," where a malicious third party misrepresents a virus or other harmful program as a legitimate program coming from an established, trustworthy source. All ClickOnce deployments must be signed with a digital certificate.
Visual Studio always build the application before deployment if some assembly in your application has been changed. If you really want to avoid the rebuild action. You should use other tool to deploy you application instead of VS.
Best Regards,
Kira Qian
Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs