Microsoft.AspNetCore.Hosting.Abstractions manifest definition does not match the assembly reference
问题 When I run the Entitfy framework core command add-migration MyMigrationName in a class library I get the following error Could not load file or assembly 'Microsoft.AspNetCore.Hosting.Abstractions, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Funny thing there is no reference in my application to Abstractions. Here is my csproj