then don't use C# or .NET

解决方案 »

  1.   

    to run managed code, you must have .NET Framework on the target machine
      

  2.   

    我的意思是说没有dotnet framework,C#是的exe文件是不可能执行的。
      

  3.   

    只要装.net framework,就不用其他dll了吗?
      

  4.   

    就要要运行.net的程序,就必须装.net FrameWork
      

  5.   

    可以,国外有个公司的产品就是将.Net程序转为未安装framework机器上运行的程序,要付费的。
    它其实就是将必须的某些类库打包。像mscorlib.dll这样的dll是必须的。
    可惜网站我不记得了,不过运行起来可能问题多多啊。
      

  6.   

    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
      

  7.   

    Deploy .NET applications as a single EXE that runs without the .NET Framework
    http://weblogs.asp.net/dvravikanth/archive/2004/04/14/112785.aspx
      

  8.   

    必须安装Net框架,否则就运行不起来