我有一个.NET核心测试项目。在这里,我需要调用WebApi和WCF服务(因为我们只迁移了一些项目,我需要使用旧的和新的服务生成测试数据)。我已经将System.ServiceModel.Primitives包添加到项目中,但仍然收到以下异常: System.Reflection.TargetInvocationException: Exceptionhas been thrown by the target of an invocation.
---> System.TypeLoadExcept