WCF 错误 - Reference.cs 为空(空) [英] WCF Error - Reference.cs is blank (empty)

查看:36
本文介绍了WCF 错误 - Reference.cs 为空(空)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中添加了服务引用,它已经创建了所有必需的 wsdl 文件.但是当我查看reference.cs文件时,我发现它是空白的.

I added the service reference in my project and it has created all required wsdl files. But when I looked at the reference.cs file, I found it blank.

-阿尼尔

推荐答案

您可以在创建的服务引用中右键单击,然后单击配置服务引用... 选项.在 DataType 部分取消选中 Reuse types in referenced assembly

you can rightclick in the service reference created and click the Configure service reference... option. in the DataType section UnCheck Reuse types in referenced assemblies

这篇关于WCF 错误 - Reference.cs 为空(空)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆