I wrote this code to instantiate a redis client
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceStack.Redis;
using ServiceStack;
class Program
{
static void Main(string[] args)
{
RedisClient a = new RedisClient();
.....
But when I try to build a solution, I get this warning
'The referenced assembly "ServiceStack.Redis" could not be resolved because it has a dependency on "System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.'
and mistake
Error3 The type or namespace name 'RedisClient' could not be found (are you missing a using directive or an assembly reference?)
I included the required dll ServiceStack.Redis.Can someone explains how to get around this problem, I can not understand the warning and what needs to be done to get the code to work.
source
share