我如何创建.Exe和Metadate文件是什么? [英] How Do I Create .Exe And What Is Metadate File?

查看:118
本文介绍了我如何创建.Exe和Metadate文件是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我什么是元数据文件以及如何清除它。在我的情况下它代表我错误。



Hi, Can any one tell me what is Metadata file and how to clear it. In my case it represents me the Error.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
</configuration>








来自上述编码的
,在我的程序中,第二行配置突出显示(蓝线)并显示未声明配置





from the above encoding, In my program the second line "configuration" is highlighted (blue line) and shows "Configuration was not declared"

推荐答案

使用Visual Studio bui编译代码ld选项或命令行工具 [ ^ ]生成exe。



元数据是描述程序的二进制信息,存储在公共语言运行库可移植可执行(PE)文件或内存中。当您将代码编译为PE文件时,元数据将插入到文件的一部分中,并且您的代码将转换为Microsoft中间语言(MSIL)并插入到文件的另一部分中。在元数据中描述在模块或程序集中定义和引用的每个类型和成员。执行代码时,运行时将元数据加载到内存中并引用它以发现有关代码类,成员,继承等的信息。



了解更多关于实际上是什么元数据这里 [ ^ ]。
Compile your code using Visual Studio build options or command line tools[^] to generate the exe.

"Metadata is binary information describing your program that is stored either in a common language runtime portable executable (PE) file or in memory. When you compile your code into a PE file, metadata is inserted into one portion of the file, and your code is converted to Microsoft intermediate language (MSIL) and inserted into another portion of the file. Every type and member that is defined and referenced in a module or assembly is described within metadata. When code is executed, the runtime loads metadata into memory and references it to discover information about your code's classes, members, inheritance, and so on."

Read more about what metadata actually is here[^].


这篇关于我如何创建.Exe和Metadate文件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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