发布C#的EXE程序,为了在非dotnet平台上运行,需要同时include那些dll?

peterlee13 2004-11-13 09:19:06
或者是否存在其他变通的方法。

要求是,不能在机器上安装dotnet framework。

我指一般的WInform程序。
...全文
187 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
fogle 2004-11-13
  • 打赏
  • 举报
回复
必须安装Net框架,否则就运行不起来
OneDotRed 2004-11-13
  • 打赏
  • 举报
回复
Deploy .NET applications as a single EXE that runs without the .NET Framework
http://weblogs.asp.net/dvravikanth/archive/2004/04/14/112785.aspx
OneDotRed 2004-11-13
  • 打赏
  • 举报
回复
url: http://www.thinstall.com/
----------------------------------

Thinstall packages an entire application suite into a single EXE file that is able to run directly without decompressing to disk. Software Developers can use Thinstall to protect and hide their data files from prying eyes, prevent disassembly of their EXE or DLL files, and create “no installation required” distributions of their software applications.

How does it work?

Thinstall first inspects your program to find all the code it uses. Next Thinstall packages these files into a single EXE utilizing patent pending Virtual Registry and Virtual File system technology to relocate .NET Framework directories so all files are always loaded from your EXE package. The system version of the .NET framework is never used and it does not matter if the user has v1.0, v1.1, both or no version at all.

Thinstall's virtual registry allows .NET Framework's ActiveX controls to be visible to your application without system changes. These ActiveX controls are listed in the text file mscoree.dll.threg.

Thinstall relocates the Global Assembly Cache and Native Images directory to reside inside your EXE package. This prevents any conflicts from external configurations. These settings are controlled in the text file fusion.dll.threg.

Special Notes:
Thinstall is not able to determine assemblies or external programs that are used dynamically. For example, assemblies that are referenced explicitly through System.Reflection.Assembly.Load
For such assemblies, you may need to manually add these Assemblies to your project by copying from c:\windows\assembly\gac
OneDotRed 2004-11-13
  • 打赏
  • 举报
回复
可以,国外有个公司的产品就是将.Net程序转为未安装framework机器上运行的程序,要付费的。
它其实就是将必须的某些类库打包。像mscorlib.dll这样的dll是必须的。
可惜网站我不记得了,不过运行起来可能问题多多啊。
vitamin_ok 2004-11-13
  • 打赏
  • 举报
回复
就要要运行.net的程序,就必须装.net FrameWork
locateangel 2004-11-13
  • 打赏
  • 举报
回复
只要装.net framework,就不用其他dll了吗?
ZT_TJU 2004-11-13
  • 打赏
  • 举报
回复
我的意思是说没有dotnet framework,C#是的exe文件是不可能执行的。
ZT_TJU 2004-11-13
  • 打赏
  • 举报
回复
呵呵,没有C#这是可能的。
saucer 2004-11-13
  • 打赏
  • 举报
回复
to run managed code, you must have .NET Framework on the target machine
calmhawkaaa 2004-11-13
  • 打赏
  • 举报
回复
20几M

为什么不装 又不是很大

是不是不用这么麻烦
saucer 2004-11-13
  • 打赏
  • 举报
回复
then don't use C# or .NET

110,524

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧