阅读背景:

在SvcUtil和WSDL代码生成期间废弃KnownType属性

来源:互联网 

I have a WCF service with a mex endpoint for metadata. I use the SvcUtil through visual studio to generate client data contracts code (C#) while the service is running. SvcUtil adds KnownType attributes for the inherited and referenced types. I have a custom data contract resolver and have no use for these Known Types. How can I make SvcUtil or the WSDL Importer not tag all these types with KnownType attributes? My worst case scenario is to go through the file after code generation and remove these attributes, but I am hoping there is a cleaner way to do this.I have a WCF service with a mex endpoint for me




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: