Question

I must use .NET 3.5 for my project and I'm trying to create a client for a ServiceStack .NET 4.0 server. I am Win 7, VS 2010, .NET 3.5. After searching around the web for hours I found an older version of ServiceStack here: https://github.com/ServiceStackV3/ServiceStackV3

You can install it like:

PM> Install-Package ServiceStack -Version 3.9.71

This succeeded, but then I found out there is no client methods that I can find for this call:

var client = new JsonServiceClient("http://host:8080/");

So then I tried to install the client:

PM> Install-Package ServiceStack.Client -Version 3.9.71

and it could not find this package. How do I create a .NET 3.5 client? I've tried many things including finding a known prior version of the Client, but I don't know enough about Github to find one.

Was it helpful?

Solution

As noted in the v3 documentation for the c# client, you will find the client in the ServiceStack.Common NuGet package. So it can be installed using:

Install-Package ServiceStack.Common

The client exists under the namespace ServiceStack.ServiceClient.Web.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top