Question

How do I publish a C++/CLI Windows Forms project for ClickOnce deployment? The properties window for C++/CLI projects does not include a "Publish" tab (like in the C# projects).

Was it helpful?

Solution

You can follow the guidelines for manually deploying a ClickOnce application on MSDN.

This relies on the Windows Software Development Kit and command line tools instead of Visual Studio to do your deployment.

Just another note with this - if you can, I'd recommend trying to migrate to /clr:pure if possible. If you're working with native code, this won't work, but if it's a pure windows forms app, it will make the deployment scenario simpler, since you'll have fewer issues in ClickOnce with CAS requirements.

OTHER TIPS

You cannot ClickOnce deploy an exe written in unmanaged code. The standard approach is to create a managed code stub exe that would launch your actual application.

Here's a related question.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top