当我运行 C# 应用程序时,Visual Studio 报告它已加载一个托管二进制文件,其名称(看起来像)是随机生成的名称
当我运行 C# 应用程序时,Visual Studio 报告它已加载一个托管二进制文件,该二进制文件具有(看起来像)随机生成的名称。
例如:
'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'ehmgcsw7'
或者:
'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'jvo4sksu'
这是什么,为什么它的名字(看似)是随机生成的?
When I run my C# application, Visual Studio reports that it has loaded a managed binary with (what looks like) a randomly generated name.
For example:
'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'ehmgcsw7'
or:
'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'jvo4sksu'
What is this, and why is its name (seemingly) randomly generated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些通常是在未构建预编译序列化程序集时生成的程序集,用于提供 XML(反)序列化功能。
These are usually the assemblies generated to provide XML (de)serialization functionality when no pre-compiled serialization assembly as been built.
您可能正在某处使用 XmlSerializer。这可能会动态生成并重新编译代码,从而导致加载具有随机名称的程序集。您可以单步执行代码并确定加载程序集的时间点。
You are probably using an XmlSerializer somewhere. This might dynamically generate and re-compile code, which in turn results in assemblies with random names that will be loaded. You could step through your code and determine at which point the assemblies are loaded.