I'm confused and have probably missed something fundamentals.
However, hope for some help.
I have a .net 4.7 console app referencing a .net standard 2.0 library project.
In the .net standard project i have used the function "Add Servicestack Reference..".
Then i do a Class using the ServiceStackClient
public async Task IList PlannedWorkOrder GetAllPlannedWorkOrdersInSaw()
var items = new List();
var client = CreateClient();
await client.GetAsync(new GetPlannedWorkOrders())
.Success(r => items = r.Results)
.Error(ex => throw ex);
In my console app.
MyTest x = new MyTest();
var result = x.GetAllPlannedWorkOrdersInSaw();
However when calling the the method above get's an error,
Message=Could not load file or assembly 'ServiceStack.Interfaces, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Ok added reference to the ServiceStack client in the Console project.
Message=Could not load file or assembly 'ServiceStack.Interfaces, Version=184.108.40.206, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Should this be even possible?
//Thanks for any advise
You’re referencing the wrong NuGet packages, please read Run ASP.NET Core Apps on the .NET Framework, i.e. you can only reference the *.Core packages.
Thanks. Referencing *.Core solved my problem