Hide menu Last updated: Jul 31 2017
Area: Episerver Commerce Applies to versions: Commerce 11

Target framework

Episerver Commerce 11 requires .NET target framework to be 4.5.2 or higher.

If an existing site is built on a lower version and you try to update its NuGet packages, you see this error "You are trying to install this package into a project that targets '.NETFramework,Version=v4.x', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."

Upgrading from earlier framework versions

Before updating Commerce NuGet packages, set the project's target framework.

  1. Open the project properties.
  2. Click the Application tab
  3. Change the Target Framework.

Setting the .NET Target framework

Once the setting is changed, continue to update NuGet packages.

Re-installing NuGet packages

Changing a project's target framework also requires you to re-install NuGet packages so their target framework matches the one used by the project. To do this, use the Package Manager Console and run the command:

Update-Package -ProjectName Your.Awesome.Commerce.Site -reinstall

To re-install every package for every project in your solution, use:

Update-Package -reinstall

 

Comments