是.netnet的所有.EXE文件? [英] Are all .EXE files of dotnet ?

查看:82
本文介绍了是.netnet的所有.EXE文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

dotnet 的所有 .EXE 文件?

推荐答案

没办法。首先,* .EXE只是文件名的模式,它由Shell使用,但内部没有任何意义;文件的实际使用由其内部结构定义,通常是签名,在这种情况下为MZ,也允许使用ZM。这是可移植可执行文件,它还包含DLL等等。请参阅:

https://en.wikipedia.org/wiki/Portable_Executable [< a href =https://en.wikipedia.org/wiki/Portable_Executabletarget =_ blanktitle =New Window> ^ ]。



.NET文件只是PE文件的一个子集。请参阅同一篇文章的部分, https://en.wikipedia.org/wiki/Portable_Executable# .NET.2C_metadata.2C_and_the_PE_format [ ^ ]。



有趣的是,在非Microsoft系统上,CLI PE文件(.NET可执行文件)可以作为CLR可执行文件使用,无需重新编译,在Mono下。在这样的系统中,* .EXE和* .DLL实际上表示CLI文件。但是,这不是一个严格的规则,因为正如我已经说过的,文件名模式并不重要,特别是在* NIX操作系统中,与Windows不同,所谓的文件扩展名的历史概念从未存在过,它来自过时的文件系统。



参见:

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

https://en.wikipedia.org/wiki / Common_Intermediate_Language [ ^ ],

https://en.wikipedia.org/wiki/Mono_%28software%29 [< a href =https://en.wikipedia.org/wiki/Mono_%28software%29target =_ blankti tle =新窗口> ^ ],

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



-SA
No way. First of all, *.EXE is nothing but a pattern for a file name, it is used by the Shell but internally means nothing; the actual use of the file is defined by its internal structure, often a signature, which is "MZ" in this case, "ZM" is also allowed. This is the Portable Executable file, which also includes DLLs and a lot more. Please see:
https://en.wikipedia.org/wiki/Portable_Executable[^].

.NET files is only a subset of PE files. Please see the section of the same article, https://en.wikipedia.org/wiki/Portable_Executable#.NET.2C_metadata.2C_and_the_PE_format[^].

Interestingly, on non-Microsoft systems, CLI PE files (.NET executable files) can be used, without recompilation, as CLR executable files, under Mono. In such systems, *.EXE and *.DLL really indicate CLI files. However, this is not a strict rule, because, as I already said, the file name pattern does not matter much, especially in *NIX OS, where so called historical concept of "file name extension" never existed, in contrast to Windows, where it came from obsolete file systems.

See also:
http://en.wikipedia.org/wiki/Common_Language_Runtime[^],
https://en.wikipedia.org/wiki/Common_Intermediate_Language[^],
https://en.wikipedia.org/wiki/Mono_%28software%29[^],
http://www.mono-project.com/[^].

—SA


exe文件是Windows用作可执行文件的文件。 Windows并不关心它是如何创建的,它只知道如何执行它。其他几个操作系统使用不同的方法根据文件属性标记文件; Windows使用文件扩展名(在这种情况下为.exe)。

因此,您可以使用多种语言的多种方法创建.exe文件。它可能是C,C ++,python等。

最后任何语言都可用于创建.exe文件
An exe file is a file that Windows uses as executable. Windows does not care how it was created, it just knows how to execute it. Several other OS use different methods for marking files as per their properties; Windows uses file extensions (.exe in this case).
So, you may create an .exe files using several methods in several languages. It may be either C, C++, python etc.
Finally Any language can be used to create .exe files


这篇关于是.netnet的所有.EXE文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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