Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中添加了服务引用,它已经创建了所有必需的 wsdl 文件。但是当我查看reference.cs 文件时,我发现它是空白的。
-阿尼尔
您可以右键单击创建的服务引用并单击该 Configure service reference...选项。在数据类型部分取消选中Reuse types in referenced assemblies
Configure service reference...
Reuse types in referenced assemblies
如果添加服务引用失败,则会发生这种情况。
我们已经看到,在响应的大小大于 WCF 中配置的大小的非常大的合同中,这种情况会失败。