c# - Google Calendar API Targets Incorrect .NET Framework -
i installed latest google api package via nuget package manager in vs2015 using install-package google.apis.calendar.v3
. however, application refuses build properly:
the primary reference "google.apis.calendar.v3, version=1.9.2.133, culture=neutral, publickeytoken=4b01fa6e34db77ab, processorarchitecture=msil" not resolved because has indirect dependency on assembly "newtonsoft.json, version=7.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed" built against ".netframework,version=v4.5" framework. higher version targeted framework ".netframework,version=v4.0".
according using google calendar api v3 .net framework 3.5, install-package google.apis.calendar.v3
command should automatically instruct package adapt .net framework v4.0 , c# 3.0. why fail here?
the calendar api targeted 4.0, its dependency still targeting 4.5.
you try use binding redirect target older version of newtonsoft.json still uses .net 4.0, though work if signature of methods calendar api uses has not changed @ between versions.
Comments
Post a Comment