Dotnet core console app running background job System.IO.FileNotFoundException

Just a thought is this because IMessage is defined in the web.api server and then defined again in the console so it cant find a match?

Wondering if I need to create a library project which the web.api and the console both consume to create and then to run the code