I'm trying to install Sensenet 7.2
from NuGet
, however I'm getting the following error while installing the Sensenet.Services.Install
package.
Error:
Could not install package 'SenseNet.Common 7.2.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.1', 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.
I'm using VS 2017, project template is "ASP.NET Web Application".
How to deal with that issue?
There are multiple issues here.
Updating to the latest (currently VS2017) should solve the package install problem. Previous VS and NuGet versions cannot handle netstandard packages I guess.
There was a type forwarding issue in .Net Framework 4.6.1 that breaks interop with a netstandard assembly if it contains certain methods in a class marked as Serialized. This means that although your projects may be on 4.6.1, on the target (executing) machine at least .Net Framework 4.7.2 has to be installed.
For details please visit this kick-off post about moving sensenet to netstandard.