Existing applications may throw a FileLoadException
after the 2.1.8 release is installed. The stack trace below is
common.
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore, Version=2.1.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Program.CreateWebHostBuilder(String[] args)
If this issue affects your application, update the project in one of the following ways:
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.7" />
(NB: this is not the .App package)<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.8" />