Using a blank .NET 4.5 web project, the Sitecore NuGet package from https://sitecore.myget.org/F/sc-packages/api/v3/index.json for 8.1.160519 (u3) fails to install with the error message:

Unable to find a version of 'Microsoft.AspNet.WebApi.Core' that is
compatible with 'Microsoft.AspNet.WebApi.Cors 5.1.2 constraint:
Microsoft.AspNet.WebApi.Core (>= 5.1.2 && < 5.2.0)'.

The issue appears to affect several of the component packages depended on by the 'Sitecore' package.

Has anyone installed the NuGet package for this version successfully, or found a way around this dependency issue?

  • seems odd, how did you create your web project? (which template and options) Can you post your current packages config?
    – ASura
    Commented Oct 7, 2016 at 18:23
  • 1
    Can you try changing your target from 4.5 to 4.5.2 - it could be that the dependency requires 4.5.2 as 4.5 is no longer supported.
    – Richard Seal
    Commented Oct 7, 2016 at 18:33
  • @RichardSeal That sounds correct. We had a similar thing with one of our solutions, and that fixed it. Commented Oct 7, 2016 at 18:57
  • @RichardSeal Convert that comment into an answer. I've had the same issue, and your solution is the right one. Commented Oct 7, 2016 at 20:19

1 Answer 1


Change your build target from 4.5 to 4.5.2 in your project properties.

The MS dependencies will not be compatible with 4.5 since that is now unsupported. So it can't find a dependency that matches your project target and fails.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.