Introducing Xml Serializer Generator for .NET Core
Like the Xml Serializer Generator (sgen.exe) on desktop, Microsoft.XmlSerializer.Generator NuGet package is the solution for .NET Core and .NET Standard Libraries. It creates an Xml serialization assembly for types contained in an assembly in order to improve the startup performance of Xml serialization when serializing or de-serializing objects of those types using XmlSerializer.
You can start using the tool today by following the instructions.
Discussion
Please share your thoughts and have any discussions with us at:
When the Xml Serializer Generator is not used, an XmlSerializer generates serialization code for each type every time when an application runs. You can improve the startup performance of Xml serialization by simply adding the reference of Microsoft.XmlSerializer.Generator NuGet package to your project. Xml Serializer Generator will generate the serialization code and compile it into an assembly next to your output assembly at build time in advance. This assembly can then be deployed and ran with your application.
Please create an issue with your feedback at dotnet/corefx. We are actively looking to improve the tool and your input is a valuable part of the process.
Stable version (v1.0.0) of Microsoft.XmlSerializer.Generator NuGet package has just been released. Instructions is also updated. Please share your feedback or have any discussions at dotnet/corefx#25138.
Introducing Xml Serializer Generator for .NET Core
Like the Xml Serializer Generator (sgen.exe) on desktop, Microsoft.XmlSerializer.Generator NuGet package is the solution for .NET Core and .NET Standard Libraries. It creates an Xml serialization assembly for types contained in an assembly in order to improve the startup performance of Xml serialization when serializing or de-serializing objects of those types using XmlSerializer.
You can start using the tool today by following the instructions.
Discussion
Please share your thoughts and have any discussions with us at:
Details
When the Xml Serializer Generator is not used, an XmlSerializer generates serialization code for each type every time when an application runs. You can improve the startup performance of Xml serialization by simply adding the reference of Microsoft.XmlSerializer.Generator NuGet package to your project. Xml Serializer Generator will generate the serialization code and compile it into an assembly next to your output assembly at build time in advance. This assembly can then be deployed and ran with your application.
Please create an issue with your feedback at dotnet/corefx. We are actively looking to improve the tool and your input is a valuable part of the process.