将CLR编译为.exe [英] Compiling CLR to a .exe

查看:58
本文介绍了将CLR编译为.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些用户迷信所有微软的东西。他们没有想要在他们的PC上安装框架。


是否有任何工具可以将C#编译为独立的EXE?


非常感谢任何帮助。

I have some users who are superstitious of all things Microsoft. They don''t
want to install the framework on their PCs.

Are there any tools out there to compile C# to a stand-alone EXE?

Any help is greatly appreciated.

推荐答案

我不知道有任何这样的工具,我对此持怀疑态度因为如果它们存在...

请记住,当你运行.NET应用程序时,你只是使用一个提供的系统

库或两个用于运行时,你正在使用整个系列的库

不仅提供运行时,而且还提供许多


即使有可能......你的应用程序也会是巨大的...因为它需要包含运行你的应用程序所需的所有.NET库。


Ita ?? d容易得多把框架扔进安装程序而不是让他们知道它正在安装。不是很诚实,但比试图做你提出的恐惧要容易得多。


布兰登

" Greg史密斯和QUOT;写道:
I do not know of any such tools and am skeptical as it if they exist...
Remember, when you run a .NET app you arena??t just using a system provided
library or two for the runtime, you are using an entire series of libraries
that provide not only the runtime, but many of the

Even if it was possible... your application would be huge... because it
would have to contain all of the .NET libraries needed to run your app.

Ita??d be far easier to throw the framework into the installer and not let
them know it is being installed. Not very honest true, but far easier than
trying to do what you propose I fear.

Brendan
"Greg Smith" wrote:
我有一些迷信微软所有东西的用户。他们不想在他们的PC上安装框架。

是否有任何工具可以将C#编译为独立的EXE?

非常感谢任何帮助。
I have some users who are superstitious of all things Microsoft. They don''t
want to install the framework on their PCs.

Are there any tools out there to compile C# to a stand-alone EXE?

Any help is greatly appreciated.



Greg,


我认为有一些,但我不知道他们的工作有多好。不用

来说,这绝对不是推荐的方法。


我的意思是,如果他们迷信微软的所有东西,他们会/>
应该在* nix框上工作,在这种情况下,这是一个没有实际意义的点,

,因为你可以然后运行Mono,那不是MS。如果他们在Windows机器上运行,那么他们真的应该接受需要安装框架

。我真的想不出一个很好的理由为什么它不应该是b $ b(而且,不,怀疑是不合格的理由)。


希望这会有所帮助。


-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" Greg Smith" < gj*@umn.edu>在消息中写道

新闻:Oj ************** @ TK2MSFTNGP12.phx.gbl ...
Greg,

There are some, I think, but I don''t know how well they work. Needless
to say, it''s definitely not the recommended approach.

I mean, if they are that superstitious of all things Microsoft, they
should be working on a *nix box, in which case, this is a moot point,
because you could just run Mono then, and that''s not MS. If they are
running on a Windows box, then they really should accept that the framework
needs to be installed. I really can''t think of a good reason why it
shouldn''t be (and no, being suspicious does not qualify as a good reason).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Greg Smith" <gj*@umn.edu> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
我有一些用户迷信所有微软的东西。他们不想在他们的PC上安装框架。

是否有任何工具可以将C#编译为独立的EXE?

非常感谢任何帮助。
I have some users who are superstitious of all things Microsoft. They
don''t want to install the framework on their PCs.

Are there any tools out there to compile C# to a stand-alone EXE?

Any help is greatly appreciated.



这样的事情确实存在,但它们不是一个好主意,因为嵌入

框架只是拉动在所有框架项目中,无论如何都会使用它。

*如果* MS真的做了邪恶的事情,那么它将全部嵌入到

应用程序中。


您为20兆字节应用程序的N

实例的框架交换了一次20兆字节的下载。没有多大意义真的是

那里?


对他们的操作系统或恐惧有宗教观点的人

of 微软所有事情不会是特别好的客户

无论如何。


-

Bob Powell [MVP]

Visual C#,System.Drawing

Ramuseco Limited .NET咨询
http://www.ramuseco.com

在Windows窗体中查找精彩的Windows窗体提示和技巧
http://www.bobpowell.net/tipstricks.htm


使用GDI +常见问题解答回答那些GDI +问题
http ://www.bobpowell.net/faqmain.htm


所有新文章都提供C#和VB.NET代码。

订阅提供的RSS提要,绝不会错过任何一篇新文章。


" Greg Smith" < gj*@umn.edu>在消息中写道

新闻:Oj ************** @ TK2MSFTNGP12.phx.gbl ...
Such things do exist but they are not a good idea because embedding the
framework just pulls in all the framework items thay would have used anyway.
*if* MS were really doing evil things then it would all be embedded into the
application.

You exchange a 1 time download of 20 megabytes for the framework for N
instances of a 20 megabyte application. Not much sense in that really is
there?

People who have religious views regarding their operating system or a dread
of "all things Microsoft" aren''t going to be particularly good customers
anyway.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Greg Smith" <gj*@umn.edu> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
我有一些用户迷信所有微软的东西。他们不想在他们的PC上安装框架。

是否有任何工具可以将C#编译为独立的EXE?

非常感谢任何帮助。
I have some users who are superstitious of all things Microsoft. They
don''t want to install the framework on their PCs.

Are there any tools out there to compile C# to a stand-alone EXE?

Any help is greatly appreciated.



这篇关于将CLR编译为.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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