[英]When I run my C# application, Visual Studio reports that it has loaded a managed binary with (what looks like) a randomly generated name
When I run my C# application, Visual Studio reports that it has loaded a managed binary with (what looks like) a randomly generated name.当我运行我的 C# 应用程序时,Visual Studio 报告它已经加载了一个带有(看起来像)随机生成的名称的托管二进制文件。
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?这是什么,为什么它的名字(似乎)是随机生成的?
These are usually the assemblies generated to provide XML (de)serialization functionality when no pre-compiled serialization assembly as been built.这些通常是生成的程序集,用于在未构建预编译的序列化程序集时提供 XML(反)序列化功能。
You are probably using an XmlSerializer somewhere.您可能在某处使用 XmlSerializer。 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.
您可以单步执行您的代码并确定加载程序集的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.