使用Visual Studio 2008进行C ++ / CLI项目的ClickOnce部署

时间:2022-09-01 09:15:26

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).

如何为ClickOnce部署发布C ++ / CLI Windows窗体项目? C ++ / CLI项目的属性窗口不包含“发布”选项卡(就像在C#项目中一样)。

2 个解决方案

#1


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

您可以遵循在MSDN上手动部署ClickOnce应用程序的准则。

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

这依赖于Windows软件开发工具包和命令行工具而不是Visual Studio来进行部署。

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.

只是另一个注意事项 - 如果可以,我建议尝试迁移到/ clr:如果可能的话纯。如果您正在使用本机代码,这将无法工作,但如果它是纯Windows窗体应用程序,它将使部署方案更简单,因为您在具有CAS要求的ClickOnce中遇到的问题更少。

#2


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.

你不能ClickOnce部署用非托管代码编写的exe。标准方法是创建一个托管代码存根exe,它将启动您的实际应用程序。

Here's a related question.

这是一个相关的问题。

#1


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

您可以遵循在MSDN上手动部署ClickOnce应用程序的准则。

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

这依赖于Windows软件开发工具包和命令行工具而不是Visual Studio来进行部署。

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.

只是另一个注意事项 - 如果可以,我建议尝试迁移到/ clr:如果可能的话纯。如果您正在使用本机代码,这将无法工作,但如果它是纯Windows窗体应用程序,它将使部署方案更简单,因为您在具有CAS要求的ClickOnce中遇到的问题更少。

#2


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.

你不能ClickOnce部署用非托管代码编写的exe。标准方法是创建一个托管代码存根exe,它将启动您的实际应用程序。

Here's a related question.

这是一个相关的问题。