question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

svcutil for Xml Serialization

See original GitHub issue

Anything on the roadmap for WCF Connected Services to have a svcutil.exe /t:xmlSerializer type option to generate XmlSerializer serialization code instead of doing it at runtime?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jherbertcommented, Jun 6, 2018

We’ve updated our SOAP library with dotnet-svcutil.xmlserializer package, and so far everything looks great. At run time the pregenerated XmlSerializers is used, which gets us a huge start up time increase.

If anyone is packaging this up into a nuget package we used <BuildOutputInPackage Include="$(OutputPath)$(AssemblyName).XmlSerializers.dll" /> to get the *.XmlSerializers.dll to be included along with the main project output.

Complete *.csproj as example.

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>netstandard2.0</TargetFrameworks>
    <TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeXmlSerializers</TargetsForTfmSpecificBuildOutput>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="dotnet-svcutil.xmlserializer" Version="1.0.0-preview1" />
    <PackageReference Include="System.ServiceModel.Duplex" Version="4.4.*" />
    <PackageReference Include="System.ServiceModel.Http" Version="4.5.0" />
    <PackageReference Include="System.ServiceModel.NetTcp" Version="4.4.*" />
    <PackageReference Include="System.ServiceModel.Security" Version="4.4.*" />
  </ItemGroup>
  <ItemGroup>
    <DotNetCliToolReference Include="dotnet-svcutil.xmlserializer" Version="1.0.0-preview1" />
  </ItemGroup>
  <Target Name="IncludeXmlSerializers">
    <ItemGroup>
      <BuildOutputInPackage Include="$(OutputPath)$(AssemblyName).XmlSerializers.dll" />
    </ItemGroup>
  </Target>
</Project>
1reaction
zhenlancommented, Jun 6, 2018

I am happy to announce that we just had an XmlSerializer pre-generator tool for WCF, named dotnet-svcutil.xmlserializer released today. Please see details and instructions in the announcement. The NuGet package can be found at https://www.nuget.org/packages/dotnet-svcutil.xmlserializer/.

We will appreciate any feedback you may share with us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using dotnet-svcutil.xmlserializer on .NET Core
The dotnet-svcutil.xmlserializer NuGet package can pre-generate a serialization assembly for .NET Core projects.
Read more >
how to force svcutil use xml serialization instead runtime ...
I'm using a service reference (the xsd visual studio tool) to generate a a cs (Reference.cs) in order to serialice and deserialice some...
Read more >
core/samples/dotnet-svcutil.xmlserializer-instructions.md at ...
It pre-generates c# serialization code for the types used by Service Contract in the WCF client applications that can be serialized using the...
Read more >
Introducing dotnet-svcutil.xmlserializer for .NET Core #72
It pre-generates c# serialization code for the types used by WCF Service Contract in the client applications that can be serialized using the ......
Read more >
dotnet-svcutil.xmlserializer 1.2.0
Generate XML serializers for types used by Service Contracts in an assembly. Versions Compatible and additional computed target framework ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found