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.
- Open the project properties.
- Click the Application tab
- Change the 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: