Loading...

Last updated: Jul 31 2017

Area: Episerver Commerce Applies to versions: Commerce 11

Target framework

  • Commerce 11 from v11.0.0 to v11.4.1 requires .NET framework 4.5.2 or higher
  • Commerce 11 from v11.5.0 up requires .NET framework 4.6.1 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

 


Do you have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/