Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
MSBuild Reference
 SGen Task
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework General Reference
SGen Task

Creates an XML serialization assembly for types in the specified assembly. This task wraps the XML Serializer Generator Tool (Sgen.exe). For more information, see XML Serializer Generator Tool (Sgen.exe).

The following table describes the parameters of the SGen task.

Parameter

Description

BuildAssemblyName

Required String parameter.

The assembly to generate serialization code for.

BuildAssemblyPath

Required String parameter.

The path to the assembly to generate serialization code for.

DelaySign

Optional Boolean parameter.

If true, places the public key in the assembly. If false, fully signs the assembly.

KeyContainer

Optional String parameter.

Specifies a container that holds a key pair. This will sign the assembly by inserting a public key into the assembly manifest. The task will then sign the final assembly with the private key.

KeyFile

Optional String parameter.

Specifies a key pair or a public key to use to sign an assembly. The compiler inserts the public key in the assembly manifest and then signs the final assembly with the private key.

References

Optional String[] parameter.

Specifies the assemblies that are referenced by the types requiring XML serialization.

SerializationAssembly

Optional ITaskItem[] output parameter.

Contains the generated serialization assembly.

SerializationAssemblyName

Optional String parameter.

Specifies the name of the generated serialization assembly.

ShouldGenerateSerializer

Required Boolean parameter.

Timeout

Optional Int32 parameter.

Specifies the amount of time, in milliseconds, after which the task executable is terminated. The default value is Int.MaxValue, indicating that there is no time out period.

ToolPath

Optional String parameter.

Specifies the location from where the task will load the underlying executable file (sgen.exe). If this parameter is not specified, the task uses the SDK installation path corresponding to the version of the framework that is running MSBuild.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker