Hi,
Is there a way to specify in the SGen task that it should call sgen.exe with the /p parameter I did not see anything in the help file. There is an AddCommandLineCommands function in the SGen task, but how do I envoke that from the build profile
It makes a huge difference timewise.
Thanks.

/p command line parameter equivalent in SGen task
Sasha
sumana
Hi Gerhardo,
In Beta 2 the task did not have support for this parameter. Since then, it has been added, with the property name "UseProxyTypes". Looking at the current internal microsoft.common.targets file, it's hard coded to "true":
<SGen
BuildAssemblyName="$(TargetFileName)"
BuildAssemblyPath="$(IntermediateOutputPath)"
References="@(ReferencePath)"
ShouldGenerateSerializer="true"
UseProxyTypes="true"
KeyContainer="$(KeyContainerName)"
KeyFile="$(KeyOriginatorFile)"
DelaySign="$(DelaySign)"
ToolPath="$(SGenToolPath)">
<Output TaskParameter="SerializationAssembly" ItemName="SerializationAssembly"/>
</SGen>
If you need to get this to work for Beta 2, I don't see a workaround off the top of my head, except for using the <Exec> task to invoke Sgen directly. You would paste in the GenerateSerializationAssemblies target from Microsoft.Common.targets into your own project below where Microsoft.common.targets is imported by the project. This will override that target with your copy. Then you can remove the call to the <SGen> task and replace it with the equivalent use of the <Exec> task including the /p switch.
Let us know if you get stuck.
Dan (msbuild@microsoft.com)