asp.net core build error : 'HttpRequestMessageExtensions'
Asked Answered
L

1

2

Using ASPNet Core 1.1 Web API template and trying to create a response on Post. Getting the below error while building the project. Thanks for your help !

Controllers\MessagesController.cs(37,28,37,72): error CS0433: The type 'HttpRequestMessageExtensions' exists in both 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Larch answered 9/2, 2017 at 18:48 Comment(0)
C
1

You should remove reference to System.Web.Http, as ASP.NET Core doesn't use it.

Cripple answered 10/2, 2017 at 12:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.