有时,增加一个WCF服务引用生成一个空reference.cs [英] Sometimes adding a WCF Service Reference generates an empty reference.cs

查看:819
本文介绍了有时,增加一个WCF服务引用生成一个空reference.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时,增加一个WCF服务引用生成一个空reference.cs,我不能引用该服务的任何地方的项目。

Sometimes adding a WCF Service Reference generates an empty reference.cs and I cannot reference the service anywhere in the project.

有没有人遇到这样?

推荐答案

一般来说,我发现,这是一个codeGEN问题,的的时候,那是因为我有一个类型的名称冲突它解决不了。

Generally I find that it's a codegen issue and most of the time it's because I've got a type name conflict it couldn't resolve.

如果你对你的服务的参考用鼠标右键单击,然后单击配置和取消选中的它很可能会解决这个问题。中引用的程序集重用类型

If you right-click on your service reference and click configure and uncheck "Reuse Types in Referenced Assemblies" it'll likely resolve the issue.

如果您正在使用此功能的某些方面,你可能需要确保你的名字将会被清理。

If you were using some aspect of this feature, you might need to make sure your names are cleaned up.

这篇关于有时,增加一个WCF服务引用生成一个空reference.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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