System.Web.Http missing after .net 4.5 upgrade

前端 未结 4 1857
暖寄归人
暖寄归人 2020-12-18 18:32

I\'ve just upgraded my solution to .net 4.5 using Target Framework Migrator, and then the package manager console command:

Update-Package -Reinstall -IgnoreDe

相关标签:
4条回答
  • 2020-12-18 18:56

    Just run the following nuget command:

    Install-Package Microsoft.AspNet.WebApi.Core
    
    0 讨论(0)
  • 2020-12-18 19:07

    I do this

    Update-Package -Reinstall 
    

    and it helped to my project be well done

    0 讨论(0)
  • 2020-12-18 19:09

    Have you looked in the Extensions part of the "Add new reference", instead of Framework ?

    If it's not there, it's in the Microsoft.AspNet.WebApi.Core package on NuGet.

    0 讨论(0)
  • 2020-12-18 19:13

    As for VS2017 - as said in the asp.net forums Microsoft has moved the namespace to a Nuget package called Web Api Core. In order to install it you need to typeInstall-Package Microsoft.AspNet.WebApi.Core in the Nuget Package Manager Console.

    0 讨论(0)
提交回复
热议问题