.net net核心newtonsoft解析
这是代码,如果你想查的话 基本上,我尝试通过rabbitMQ连接两个应用程序,但它似乎可以工作,我在json解析方面遇到了一些问题:.net net核心newtonsoft解析,.net,rabbitmq,microservices,core,rawrabbit,.net,Rabbitmq,Microservices,Core,Rawrabbit,这是代码,如果你想查的话 基本上,我尝试通过rabbitMQ连接两个应用程序,但它似乎可以工作,我在json解析方面遇到了一些问题: Error thrown in Subscriber: , Exception: Newtonsoft.Json.JsonSerializationException: Error resolving type specified in JSON 'One.Messages.SomeMessage, One'. Path '$type', line 1, po
Error thrown in Subscriber: , Exception:
Newtonsoft.Json.JsonSerializationException: Error resolving type specified in JSON 'One.Messages.SomeMessage, One'. Path '$type', line 1, position 50. ---> System.IO.FileNotFoundException: Could not load file o
r assembly 'One, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
目前解决这个问题的唯一方法是将某个消息移动到一个direcotry,并在两个服务中引用同一个类,这是我想要避免的,我希望能够将消息的定义留给每个服务
谢谢你的建议