简体   繁体   English

WinForms应用程序无法在其他计算机上打开

[英]WinForms Application not opening on other computers

I have made a WinForms application that uses DevExpress (trial) but some of my friends can open it but some others can't. 我已经制作了一个使用DevExpress(试用版)的WinForms应用程序,但我的一些朋友可以打开它,但有些人不能打开它。 You can find the source here: https://github.com/JujharSingh/Exploit-Studio I have also made sure that I didn't delete any DLL files while packaging. 你可以在这里找到源代码: https//github.com/JujharSingh/Exploit-Studio我还确保在打包时没有删除任何DLL文件。

Make sure you right click on all the required files in solution explorer and include them so when you publish your project, they're deployed with the project. 确保右键单击解决方案资源管理器中的所有必需文件并将其包含在内,以便在发布项目时,将它们与项目一起部署。 在此输入图像描述

Also make sure you've the following option configured correctly: 还要确保正确配置以下选项: 在此输入图像描述

You wouldn't have to worry about .Net framework version as the published setup automatically installs missing .Net files. 您不必担心.Net框架版本,因为已发布的安装程序会自动安装缺少的.Net文件。

Finally, goto your project Properties -> Publish -> Application Files and mark the required files as required and include them: 最后,转到您的项目属性 - >发布 - >应用程序文件,并根据需要标记所需的文件并包含它们:

在此输入图像描述

And on the same page, tick the required prerequisites: 在同一页面上,勾选所需的先决条件: 在此输入图像描述

Finally, make sure you're giving them the published version, not the copied executable file. 最后,确保您向他们提供已发布的版本,而不是复制的可执行文件。 Hope this helps 希望这可以帮助

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

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