Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The other answers to this question have already mentioned the Project Properties->Build-><strong>Generate Serialization Assemblies</strong> setting but by default this will only generate the assembly if there are "<strong>XML Web service proxy types</strong>" in the project.</p> <p>The best way to understand the exact behaviour of Visual Studio is to to examine the <strong>GenerateSerializationAssemblies</strong> target within the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727**Microsoft.Common.targets** file. </p> <p>You can check the result of this build task from the Visual Studio <strong>Output</strong> window and select <strong>Build</strong> from the <strong>Show output from</strong>: drop down box. You should see something along the lines of</p> <p>C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\sgen.exe /assembly:D:\Temp\LibraryA\obj\Debug\LibraryA.dll /<strong>proxytypes</strong> /reference:.. /compiler:/delaysign- LibraryA -> D:\Temp\LibraryA\bin\Debug\LibraryA.dll</p> <p>The key point here is the /<strong>proxytypes</strong> switch. You can read about the various switches for the <a href="http://msdn.microsoft.com/en-us/library/bk3w6240(VS.80).aspx" rel="noreferrer">XML Serializer Generator Tool (Sgen.exe)</a></p> <p>If you are familiar with MSBuild you could customise the GenerateSerializationAssemblies target so that SGen task has an attribute of UseProxyTypes="false" instead of true but then you need to take on board all of the associated responsibility of customising the Visual Studio / MSBuild system. Alternatively you could just extend your build process to call SGen manually without the /proxytypes switch.</p> <p>If you read the documentation for SGen they are fairly clear that Microsoft wanted to limit the use of this facility. Given the amount of noise on this topic, it's pretty clear that Microsoft did not do a great job with documenting the Visual Studio experience. There is even a <a href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=123088" rel="noreferrer">Connect Feedback</a> item for this issue and the response is not great.</p>
    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. 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