Search code examples
visual-studio-2013nuget-packagebing-ads-api

Could not install package 'Microsoft.Extensions.Logging 2.1.1'


I'm trying to update Bing Ads SDK to version 12.13.5. I am using Visual Studio 2013. Nuget version is 2.12.0.817. When I try to update, I get the following error:

Could not install package 'Microsoft.Extensions.Logging 2.1.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', 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 tried installing Microsoft.Extensions.Logging 3.0.0 (latest version) and get the same error.

I also tried targeting .NET version 4.6.1 and 4.5.2 and got the same error.


Solution

  • For anyone else who may have this problem, the solution was to manually add a package entry for Microsoft.Extensions.Logging 2.1.1 to packages.config. This allowed the Bing Ads SDK package to update successfully.