[英]Error 1 The type or namespace name 'ProductServiceClient' could not be found (are you missing a using directive or an assembly reference?)
Just trying to create a wcf test client. 只是尝试创建一个wcf测试客户端。 I added a service client using GardenClient.GardenServiceReference;
我使用GardenClient.GardenServiceReference添加了一个服务客户端; I have the project on http://github.com/vboyz2knight/WcfGardenService using 2010 visual studio IDE
我使用2010 visual studio IDE在http://github.com/vboyz2knight/WcfGardenService上拥有该项目
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GardenClient.GardenServiceReference;
namespace GardenClient
{
class Program
{
static void Main(string[] args)
{
//Trying to create a test client
ProductServiceClient client = new ProductServiceClient();
}
}
}
You probably are missing a wcf service assembly reference. 您可能缺少wcf服务程序集参考。 You can add it via Solution -> Project -> Add Service Reference.
您可以通过解决方案->项目->添加服务参考来添加它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.