Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>see <a href="http://msdn.microsoft.com/en-us/library/bk3w6240(VS.80).aspx" rel="noreferrer">msdn</a> for the options to sgen.exe [you have the command line, you can play with it manually... delete your .XmlSerializers.dll or use /force though]</p> <p>Today I also ran across how to more <a href="http://www.kiwidude.com/blog/2007/02/vs2005-when-sgen-doesnt-work.html" rel="noreferrer">manually specify the sgen options</a>. I wanted this to not use the /proxy switch, but it appears it can let you specify the output directory. I don't know enough about msbuild to make it awesome, but this should get you started [open your .csproj/.vbproj in your non-visual studio editor of choice, look at the bottom and you should be able to figure out how/where this goes]</p> <p>[the below code has had UseProxyTypes set to true for your convenience]</p> <pre><code>&lt;Target Name="GenerateSerializationAssembliesForAllTypes" DependsOnTargets="AssignTargetPaths;Compile;ResolveKeySource" Inputs="$(MSBuildAllProjects);@(IntermediateAssembly)" Outputs="$(OutputPath)$(_SGenDllName)"&gt; &lt;SGen BuildAssemblyName="$(TargetFileName)" BuildAssemblyPath="$(OutputPath)" References="@(ReferencePath)" ShouldGenerateSerializer="true" UseProxyTypes="true" KeyContainer="$(KeyContainerName)" KeyFile="$(KeyOriginatorFile)" DelaySign="$(DelaySign)" ToolPath="$(SGenToolPath)"&gt; &lt;Output TaskParameter="SerializationAssembly" ItemName="SerializationAssembly" /&gt; &lt;/SGen&gt; &lt;/Target&gt; &lt;!-- &lt;Target Name="BeforeBuild"&gt; &lt;/Target&gt; --&gt; &lt;Target Name="AfterBuild" DependsOnTargets="GenerateSerializationAssembliesForAllTypes"&gt; &lt;/Target&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload