[NOTICE] Solution for error after updating VisualStudio

  • Updated

Partners may encounter the following error when updating VisualStudio and building the Optimizely Configured Commerce project:

Version conflict detected for System.Net.Http. Install/reference System.Net.Http 2.0.20126.16343 directly to project InsiteCommerce.Web to resolve the issue.

This issue was fixed in 5.2.2502.1688+sts and 5.2.2412.1744+lts.

If you have not updated to one of these versions, use the following steps:

Project folder with Directory.Packages.props

  • Add the following to Directory.Packages.props<PackageVersion Include="System.Net.Http" Version="4.3.4" />
  • Add the following to InsiteCommerce.Web.csproj<PackageReference Include="System.Net.Http" />

No Directory.Packages.props

  • Add the following to InsiteCommerce.Web.csproj<PackageReference Include="System.Net.Http" Version="4.3.4" />