Upgrading Magenic/MAQS from V4 to V5

If you get an error like this while upgrading Magenic/MAQS from V4 to V5:

Severity Code Description Project File Line Suppression StateError Could not install package ‘Microsoft.Extensions.Configuration 2.1.1’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.5’, 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.

Tried clearing the NuGet cache in VS 2017 but that didn’t help.

Solution

Unfortunately, there is no clean upgrade path from V4 to V5.The team has made several big changes, such as moving to .Net Standard 2.0, lazy initialization of the web driver, support for multiple web drivers in a single test, slitting of the config file sections and adding support for .Net Core to name just a few.