Will the IXMLSerializable implementation create a serializer DLL file in my Temp directory?

Typically, when using XMLSerializer to automatically serialize an ISerializable, a .dll file is created at C: \ WINDOWS \ Temp.

If I implement IXMLSerializable instead, where I talk about how to serialize / deserialize, will it also generate this DLL?
I have a very simple class to serialize, and I'm trying to avoid automatically creating files for permission reasons.

Any ideas?

Thanks.

+4
source share
1 answer

Using IXmlSerializable will not prevent the assembly from being created. To do this, look in the project properties:

  • On the Build tab for C #, the Generate Serialization pop-up menu will appear.
  • On the "Compilation" tab for VB.NET there is a button "Advanced compilation options". Click on it and you will see the โ€œGenerate serializationโ€ drop-down menu.

In both cases, you can set it to off. and manually use the generator tool XML serializer (Sgen.exe) to generate your assemblies.

+4
source

All Articles