简体   繁体   English

Winforms Devexpress应用程序部署

[英]Winforms Devexpress application deployment

I'm worikng on a winforms application which uses DevExpress controls. 我在使用DevExpress控件的winforms应用程序上工作。

It was fine on development computers but when i try to deploy the applicaiton on a customer computer it does not work because i guess it can't load devexpress dlls. 在开发计算机上很好,但是当我尝试在客户计算机上部署应用程序时,它不起作用,因为我猜它无法加载devexpress dll。

Even i make all the dll's on properties->publish->application files as include, it didn't work. 即使我将属性 - >发布 - >应用程序文件中的所有dll都包含在内,它也不起作用。

Then i installed Devexpress components on target computer and it started to work. 然后,我在目标计算机上安装了Devexpress组件,并且开始工作。 How can i make the application work on customer computers without installing devexpress component library ? 我如何在不安装devexpress component library情况下使应用程序在客户计算机上工作?

You mentioned that you marked them in Properties -> Publish -> Application Files. 您提到您在属性->发布->应用程序文件中对其进行了标记。 For the most part, the files will be marked included, but there are some that might say "Prerequisite (Auto)" and you'll have to explicitly mark them as Include. 在大多数情况下,文件将被标记为包含,但有些可能会说“先决条件(自动)”,您必须明确将它们标记为包含。 In the example screenshot below, you would have to change the DevExpress.SpellChecker from Prerequisite to Include: 在下面的示例屏幕快照中,您必须将DevExpress.SpellChecker从Prerequisite更改为Include:

在此输入图像描述

You may also want to check the "Show all files" checkbox in that same dialog and see if there are any listed not explicitly marked as Excluded. 您可能还希望在同一对话框中选中“显示所有文件”复选框,并查看是否有未明确标记为“已排除”的任何列表。

Finally, when your application fails on the client computer, the exception details should contain the name of the missing component and that should give you a big clue. 最后,当您的应用程序在客户端计算机上失败时,异常详细信息应包含缺少的组件的名称,这应该为您提供一个重要的线索。

In your DevExpress installation Folder is a Subfolder Bin\\Framework . 在DevExpress安装文件夹中,有一个Subfolder Bin \\ Framework You have do deploy the dll you use in your Application with it. 您确实已经在其中部署了在应用程序中使用的dll。

Edit: you should also consider the comment of Adriano 编辑:您还应该考虑Adriano的评论

如果您只是从bin文件夹中复制应用程序,那么只需在解决方案中的“References”下找到DevExpress dll,并将属性“CopyLocal”更改为“true”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM