SvcUtil and /dconly generates XSD's for data types NOT marked with the DataContract attribute.

Posted by Bellerephon on Stack Overflow See other posts from Stack Overflow or by Bellerephon
Published on 2011-02-07T06:28:54Z Indexed on 2011/02/10 23:25 UTC
Read the original article Hit count: 207

Filed under:
|
|
|

Has anyone ever encountered a problem with Svcutil and the /dconly option where it generates metadata for EVERY data type in an Assembly, even if it is NOT marked with with the [DataContract()] attribute? It also appears to be generating metadata for types only referenced in the code, such as XmlDictionaryReaderQuotas even though these are not a part of the physical assembly that I generated metadata on.

Some info: Using the .NET 4.0 version of SvcUtil. Does not matter if class is empty or not. No references are specified in the command line for SvcUtil.

Command line:

"C:\In Progress Work (Prospective)\Prospective Server\Prospective Server\Management\Prospective.Server.Server.NET40.Debug.AnyCPU.dll" /nologo /t:metadata /d:"C:\In Progress Work (Prospective)\Prospective Server\Prospective Server\Management" /dconly

© Stack Overflow or respective owner

Related posts about wcf

Related posts about metadata