GlobalConfiguration.Configure() not present after Web API 2 and .NET 4.5.1 migration

后端 未结 11 1951
后悔当初
后悔当初 2020-12-02 08:24

I recently started following this guide to migrate my project to .NET 4.5.1 and Web Api 2.

The very first thing MS developer Rick Anderson asks you to do is change:<

11条回答
  •  攒了一身酷
    2020-12-02 08:36

    As well as using Package manager console to get nuget to update the project with Install-Package Microsoft.AspNet.WebApi.WebHost for missing GlobalConfiguration,

    I needed Install-Package Microsoft.AspNet.WebApi.SelfHost for missing using System.Web.Http;

提交回复
热议问题