没有.NET环境的C# [英] C# without .NET environmet

查看:43
本文介绍了没有.NET环境的C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我有一个c#程序,但我发现没有任何可能在.NET环境中工作,因为它没有安装并且不可能拥有安装.NET的本地权限。



有没有人知道如何在没有.NET环境的情况下在c#中运行程序?

是否有可能编译.exe或类似的东西可以做到这一点?



我一直在运行.exe。净环境。



非常感谢您提前。



David

Hello,

I have a program in c#, but I find that there is not any possibility of working in the .NET environmet, because it is not installed and it is not possible to have local rights to install the .NET.

Have anybody any idea of how can I run the program in c# without the .NET environment?
Is there any possibility of compiling a .exe or something equivalent that can do it?

I have always run the .exe in .net environment.

Thank you very much in advance.

David

推荐答案

是的,有方法,但它们不是免费的:



SpoonStudio [ ^ ]



RemoteSoft Linker [ ^ ]



并且功能集可能有限。
Yes, there are ways, but they aren't free:

SpoonStudio[^]

RemoteSoft Linker[^]

And the feature set may be limited.


这取决于你怎么称呼没有.NET,因为 .NET程序集并不真正需要.NET,它们需要CLR

http://en.wikipedia.org/wiki/.NET_framework [ ^ ],

http://en.wikipedia .org / wiki / Common_Language_Runtime [ ^ ]。



看到差异?而.NET并不是CLR的唯一实现。替代实现之一被高度使用:

http://en.wikipedia.org/wiki/Mono_software [ ^ ],

http://www.mono-project.com/ [ ^ ]。



感谢Mono,我可以运行我的许多应用程序(包括一些 System.Windows.Forms 应用程序),在Linux,Mac OS X和其他平台上无需重新编译



如果你进行网络搜索,你可以轻松找到几种不同的CLR实现。







您还可以考虑以下事项:通过部署应用程序设置可再发行的.NET Framework。请参阅:

http:// msdn .microsoft.com / zh-CN / library / 6hbb4k3e%28v = vs.110%29.aspx [ ^ ]。



在大多数情况下,这个是最简单,最强大和最稳定的方法。



-SA
It depends what do you call "without .NET", as .NET assemblies do not really require .NET, they require CLR:
http://en.wikipedia.org/wiki/.NET_framework[^],
http://en.wikipedia.org/wiki/Common_Language_Runtime[^].

See the difference? And .NET is not the only implementation of CLR. One of alternative implementations is highly used:
http://en.wikipedia.org/wiki/Mono_software[^],
http://www.mono-project.com/[^].

Thanks to Mono, I can run many of my applications (including some System.Windows.Forms applications), on Linux, Mac OS X and other platforms without recompilation.

There are few different CLR implementations you can easily find if you do your Web search.



You can also consider the following: setting up redistributable .NET Framework with deployment of your application. Please see:
http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.110%29.aspx[^].

In most cases, this is the easiest and most robust and stable approach.

—SA


这篇关于没有.NET环境的C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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