c# – 当我将源代码编译到.net框架中的exe文件时会发生什么
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了c# – 当我将源代码编译到.net框架中的exe文件时会发生什么,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1048字,纯文字阅读大概需要2分钟。
内容图文
![c# – 当我将源代码编译到.net框架中的exe文件时会发生什么](/upload/InfoBanner/zyjiaocheng/803/c7aba9337d954bbc8002852addbdea4a.jpg)
将.NET源代码(c#或vb)编译为.exe文件时会发生什么?我希望了解在制作exe文件时发生的过程,并查看了有关逆向工程和反编译的几个问题(例如,How do I decompile a .NET EXE into readable C# source code?和What happens when user click .NET assembly (EXE)?)
提前致谢
解决方法:
托管执行过程包括以下步骤
>选择编译器
To obtain the benefits provided by the common language runtime, you must use one or more language compilers that
target the runtime.
>将代码编译为MSIL
Compiling translates
your source code into Microsoft intermediate language (MSIL) and
generates the required metadata.
>将MSIL编译为本机代码
At execution time, a just-in-time (JIT) compiler translates the MSIL into
native code. During this compilation, code must pass a verification
process that examines the MSIL and metadata to find out whether the
code can be determined to be type safe.
>运行代码
The common language runtime provides the infrastructure that enables execution to
take place and services that can be used during execution.
在这里查看详细信息:http://msdn.microsoft.com/en-us/library/k5532s8a.aspx
内容总结
以上是互联网集市为您收集整理的c# – 当我将源代码编译到.net框架中的exe文件时会发生什么全部内容,希望文章能够帮你解决c# – 当我将源代码编译到.net框架中的exe文件时会发生什么所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。