C# - > 。可执行程序 [英] C# --> .exe

查看:69
本文介绍了C# - > 。可执行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。


是否有可能在C#中创建一个真正的exe而不仅仅是IL?我认为对于Java来说有可能......


问候和感谢所有信息,

Tim。

解决方案

你好蒂姆,


为了所有意图和目的,你确实用C#创建了真正的exes。他们编译



filename.exe。你还可以创建本机代码来加速执行


如果你的意思是独立文件中的exe可以在系统上运行

没有.Net安装,然后没有,但你也不能运行一个需要

vbrun300.dll或mfc42.dll的文件,如果这些文件不存在的话。


-

快乐编码!

Morten Wennevik [C#MVP]





星期五,2004年12月10日12:39:03 +0100,Morten Wennevik写道:

如果你的意思是一个exe就像在一个人站立文件能够在系统上运行
没有.Net安装,然后没有




其实是的,你可以。有类似的东西:
http://www.remotesoft.com /linker/index.html


但除了非常特殊的情况,你不想这样做。

" Morten Wennevik" schrieb im Newsbeitrag新闻:...



首先,感谢快速回复。
< blockquote class =post_quotes>对于所有意图和目的,你确实在C#中创建了真实的exes。他们编译
到filename.exe。您还可以创建本机代码以加快执行速度。


这就是我的意思:如果你的意思是一个独立文件中的exe,可以在没有安装.Net的系统上运行,那么不,但是如果那些不存在,你可以运行一个需要vbrun300.dll或mfc42.dll的文件




但是如果你复制dll一切都还可以。

我认为在.NET中仅仅复制所需的dll是不够的......


如果有一个包含所有需要的话还有办法吗? dll?

问候并再次感谢,

Tim。


Hello.

Is it somehow possible to create a real exe in C# and not only the IL? I
think for Java there is a possibility...

Greetings and thanks for all information,
Tim.

解决方案

Hi Tim,

For all intents and purposes you do create real exes in C#. They compile
to
filename.exe. You can furthermore create native code to speed up
execution.
If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no, but neither could you run a file requiring
vbrun300.dll or mfc42.dll if those weren''t present.

--
Happy Coding!
Morten Wennevik [C# MVP]


Hi,

On Fri, 10 Dec 2004 12:39:03 +0100, Morten Wennevik wrote:

If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no



Actually yes you can. With something like that:
http://www.remotesoft.com/linker/index.html

But except for very particular situations, you don''t want to do that.


"Morten Wennevik" schrieb im Newsbeitrag news:...

Hi Morten,

first of all, thanks for the fast reply.

For all intents and purposes you do create real exes in C#. They compile
to filename.exe. You can furthermore create native code to speed up
execution.
This is what I meant: If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no, but neither could you run a file requiring vbrun300.dll or mfc42.dll if those weren''t present.



But if you copy the dlls everything is ok.
I think in .NET it is not enough to just copy the needed dlls...

So is there a way if one includes all the needed dlls?
Greetings and thanks again,
Tim.


这篇关于C# - &gt; 。可执行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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