VS2010 无法添加服务引用 [英] VS2010 unable to add service reference

查看:27
本文介绍了VS2010 无法添加服务引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个最初用 VS2008(专业)编写的项目.我已经从 VS2008 解决方案中的项目创建了一个 vs2010 解决方案(使用 VS2010 专业版),但无法从解决方案的域层(类库项目)添加服务引用.我已经检查过域层项目是针对框架3.5或4.0的,并尝试修复甚至重新安装VS2010但仍然无法添加服务引用.

I have a project which was originally written in VS2008 (professional). I have created a vs2010 solution (using VS2010 professional) from the projects within the VS2008 solution but am not able to add a service reference from the domain layer of the solution (a class library project). I've checked that the domain layer project is targeting framework 3.5 or 4.0, and have tried repairing and even re-installing VS2010 but still cannot add a service reference.

右键单击项目时缺少服务引用"选项.还有一个现有的Web 服务"引用,现在在单元测试期间调用时会失败.

The "service reference" option is missing when I right click the project. There was also an existing "Web Service" reference which now fails when called during unit testing.

有其他人遇到过这个问题吗?

Has any one else experienced this problem ?

推荐答案

对于 Windows 8 中的 Visual Studio 10.对于 3.5 Framework 或更早版本不显示添加服务引用".你得把Project的.NET Framework改成4.0

For Visual Studio 10 in Windows 8. The "Add Service Reference" does not shown for 3.5 Framework or Earlier. You have to change the .NET Framework of Project to 4.0

这篇关于VS2010 无法添加服务引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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