简体   繁体   English

XML 没有 csc.exe 的序列化

[英]XML Serialization without csc.exe

I am running into a problem with some .net controls that I created and which I want to use in Internet explorer while Protected Mode is enabled.我遇到了一些 .net 控件的问题,这些控件是我创建的,并且我想在启用保护模式时在 Internet Explorer 中使用。 I get all kind of security prompts which relate to csc.exe trying to dynamically generate the serialized types.我得到所有与 csc.exe 相关的安全提示,试图动态生成序列化类型。 Anyway my question is is there a .NET library out there that would allow me to serialize objects without triggering this csc.exe executable?无论如何,我的问题是是否有一个 .NET 库可以让我在不触发此 csc.exe 可执行文件的情况下序列化对象?

Thank you谢谢

You can try using the sgen ( XML Serializer Generator ) tool.您可以尝试使用 sgen ( XML Serializer Generator ) 工具。 That will precompile the assemblies so that they don't need to be generated at runtime.这将预编译程序集,以便不需要在运行时生成它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM