We recently created a new DotNetCore web service using ServiceStack. The ServiceModel project is a DotNet Standard class library v2.0.
I am getting compiling errors while referencing the new ServiceModel from our existing web services that were written in DotNet Framework 4.6.1. Looks like by referencing the new ServiceModel, it is pulling in ServiceStack.Interfaces.Core which conflict with ServiceStack.Interfaces already referenced in the DotNet Framework project.
We are not looking to upgrade those existing services to DotNetCore yet. Is there a way to consume a DotNet Standard ServiceModel in a DotNet Framework web service?
[Edit 1]
Found a similar issue here. My ServiceModel only references ServiceStack.Interfaces.Core(5.1.0). The .net Framework project is targeting v4.6.1 and using ServiceStack v4.5.8. Do I need to upgrade to the latest Service Stack to make it work?
[Edit 2]
Upgraded the ServiceStack version to 5.1.0 in the .net Framework project. That fixed those Service not implementing IServiceClient errors. However, now I am getting
The type 'IReturn<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'ServiceStack.Interfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null'.
The type arguments for method 'IServiceGateway.Send(object)' cannot be inferred from the usage. Try specifying the type arguments explicitly.