为什么没有外部DLL,我的C#应用​​程序将无法运行? [英] why my C# application doesn't work without external DLLs?

查看:67
本文介绍了为什么没有外部DLL,我的C#应用​​程序将无法运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我制作了一个C#应用程序,它使用了一些外部DLL,例如Directx.capture等.
现在,当我在debug文件夹中运行exe时,它可以正常运行,但是当我将exe复制到另一个位置时,它不会运行.
它仅在我也复制.dll文件的情况下运行.

但我不想复制dll文件..
我只想在其他计算机上运行exe而不复制Dll..
解决方案是什么?

Hello,
i made a C# application it uses a few external DLLs like Directx.capture etc.
now when i run the exe in the debug folder it runs without any problem but when i copy the exe to another location it doesn''t run.
it only runs if i also copy the .dll files with it.

but i dont want to copy dll files..
i just want to run the exe on the other computers without copying the Dlls..
what is the solution?

推荐答案

您将无法运行带有支持它的dll的exe.
实际上,您根本无法执行此操作.

复制dll和exe的最简单方法是建立安装文件.
此安装文件将在客户端计算机上安装exe和支持dll.
You wont be able to run an exe with the dlls supporting it.
There is actually no way you can do this.

The easiest alternative to copying the dlls along with the exe is to build a setup file.
This setup file will install both the exe and the support dlls on the client machine.


这篇关于为什么没有外部DLL,我的C#应用​​程序将无法运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆