创建“独立”程序。 [英] Create "Standalone" program.

查看:49
本文介绍了创建“独立”程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello CodeProject,

i已经制作了一个需要.net框架才能执行的应用程序(启动器),但我想让这个应用程序在没有.net框架的情况下执行。

我的应用程序是用C#编写的,如果它可能在C ++或C i上再次在C ++或C上再生这个程序,那就不大了。

我知道我的问题很奇怪但就是这样。

谢谢你,希望我的英语更好解释:)

解决方案

曾经有一个链接器将.NET Framework链接到.EXE中,因此您不必单独安装.NET Framework。据我所知,它已经在大约6年内没有更新,而且成本约为


1,800。



只需重写它是用C语言完成的。



如果不先安装.NET Framework,就不能运行托管代码,任何面向.NET Framework的语言。


使用针对本机Window(或其他一些)操作系统的众多语言和开发系统之一。使用没有安装.NET的CLR似乎不太现实。更好的是,忽略这个问题。开发.NET并放松。首先,没有.NET的系统越来越少;其次,您可以随时使用您的应用程序部署.NET:

http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.110%29.aspx [ ^ ],

http://support.microsoft.com/kb/818016 [ ^ ]。



-SA

Hello CodeProject,
i have made one Application (launcher) which requires .net framework to execute, But i want to make this application to execute even without .net frameworks.
My application is coded on C#, and its not big thing if its possible on C++ or C i would make this program again on C++ or C
But i just need a little suggestion that is it possible to make application that run standalone without Net Framework requirement.
I know my Question is weird but that's it.
Thank you and hope my English is better to explain :)

解决方案

There used to be a linker that would "link" the .NET Framework into your .EXE so you didn't have to install the .NET Framework separately. It hasn't been updated in about 6 years as far as I remember and it cost about


1,800.

Just rewrite it in C and be done with it.

You cannot run managed code, any language that targets the .NET Framework, without installing the .NET Framework first.


Use one of the many languages and development systems targeting native Window (or some other) OS. Using CLR without .NET installed does not seem really realistic. Better yet, ignore the problem. Develop for .NET and relax. First, there are less and less systems without .NET out there; secondly, you can always deploy .NET with your application:
http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.110%29.aspx[^],
http://support.microsoft.com/kb/818016[^].

—SA


这篇关于创建“独立”程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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