I am new with Web API 2. I am trying to create an application using VS 2013 Update 4, ASP.Net 4.5, while trying to install "Microsoft.AspNet.Odata" Nuget Package,l getting following error:
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 5.2.2)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.4)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 5.2.2 && < 5.3.0)'.
Attempting to resolve dependency 'Microsoft.Extensions.DependencyInjection.Abstractions (≥ 1.0.0 && < 2.0.0)'.
Attempting to resolve dependency 'Microsoft.Extensions.DependencyInjection (≥ 1.0.0 && < 2.0.0)'.
Attempting to resolve dependency 'Microsoft.OData.Core (≥ 7.0.0 && < 8.0.0)'.
Attempting to resolve dependency 'Microsoft.Spatial (= 7.0.0)'.
Attempting to resolve dependency 'Microsoft.OData.Edm (= 7.0.0)'.
Installing 'Microsoft.Extensions.DependencyInjection.Abstractions 1.0.0'.
Successfully installed 'Microsoft.Extensions.DependencyInjection.Abstractions 1.0.0'.
Installing 'Microsoft.Extensions.DependencyInjection 1.0.0'.
Successfully installed 'Microsoft.Extensions.DependencyInjection 1.0.0'.
Installing 'Microsoft.Spatial 7.0.0'.
Successfully installed 'Microsoft.Spatial 7.0.0'.
Installing 'Microsoft.OData.Edm 7.0.0'.
Successfully installed 'Microsoft.OData.Edm 7.0.0'.
Installing 'Microsoft.OData.Core 7.0.0'.
Successfully installed 'Microsoft.OData.Core 7.0.0'.
Installing 'Microsoft.AspNet.OData 6.0.0'.
Successfully installed 'Microsoft.AspNet.OData 6.0.0'.
Adding 'Microsoft.Extensions.DependencyInjection.Abstractions 1.0.0' to WebAPI_Empty.
Uninstalling 'Microsoft.Extensions.DependencyInjection.Abstractions 1.0.0'.
Successfully uninstalled 'Microsoft.Extensions.DependencyInjection.Abstractions 1.0.0'.
Install failed. Rolling back...
Could not install package 'Microsoft.Extensions.DependencyInjection.Abstractions 1.0.0'. 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.
Any help to proceed are appreciated.
Thanks!!