I installed the latest Google API package via NuGet Package Manager in VS2015 using Install-Package Google.Apis.Calendar.v3
. However, my application refuses to build properly:
The primary reference "Google.Apis.Calendar.v3, Version=1.9.2.133, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the assembly "Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
According to Using Google Calendar API V3 with .net framework 3.5, the Install-Package Google.Apis.Calendar.v3
command should automatically instruct the package to adapt to my .NET Framework v4.0 and C# 3.0. Why does it fail to do that here?