Starting or restarting the Commerce Engine might fail with an unhandled exception. The root cause of the issue is that the package dependencies are resolved with incompatible versions after restoring Sitecore Commerce NuGet packages. The following message can be found in the logs:
System.IO.FileLoadException: Could not load file or assembly 'Sitecore.Commerce.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
To resolve the issue, modify the Sitecore.Commerce.Engine.csproj file as follows:
<PackageReference Include="Sitecore.Commerce.Plugin.ManagedLists" Version="6.0.*" /> <PackageReference Include="Sitecore.Commerce.Plugin.Search" Version="6.0.*" /> <PackageReference Include="Sitecore.Commerce.Plugin.Views" Version="6.0.*" />
nuget locals all -clear