Base solution for your next web application
Open Closed

Can not resolve reference: `Microsoft.AspNetCore.Http.Features` error #8924


User avatar
0
zdeen created

Version of Aspnet zero:

ASP.NET CORE & Angular .NET Core 2.2 v7.2.3

I have been trying to configure Xamarin project as per the documents here https://docs.aspnetzero.com/en/aspnet-core-angular/v7.2.0/Development-Guide-Xamarin but getting this error from VS 2017 and requesting out for some help here.

Severity Code Description Project File Line Suppression State Error Can not resolve reference: Microsoft.AspNetCore.Http.Features, referenced by OneSense.Application.Client > OneSense.Application.Shared. Please add a NuGet package or assembly reference for Microsoft.AspNetCore.Http.Features, or remove the reference to OneSense.Application.Client. OneSense.Mobile.Droid C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 1898

This is Application.Client and it has some nuget conflict issue. I have installed Microsoft.AspNetCore.Http.Features in the project but still don't know why build is compalining that it cannot resolve the package Could anyone guide how can this be fixed.

I got this version of ASPPNET Zero few months back and was working on Angualr and .NET Core WepAPI Part of the same which is working perfectly. With now my API ready and hosted in private beta for testing I have started working in building a Xamarin app for the same and encountering this issue .Any guidance how can I proceed further.

Thnaks a lot for the help in advance

Regards, Zainudeen


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @zdeen,

    Could you try this with VS 2019 ?

    Thanks,

  • User Avatar
    0
    zdeen created

    Got the same error as in VS2017 and the conflict still exists Can not resolve reference: Microsoft.AspNetCore.Http.Features, referenced by OneSense.Application.Client > OneSense.Application.Shared. Please add a NuGet package or assembly reference for Microsoft.AspNetCore.Http.Features, or remove the reference to OneSense.Application.Client. OneSense.Mobile.Droid

    The nuget package issue :

    Could you please guide if I should download the original project once again from my account and check that as well.

  • User Avatar
    0
    zdeen created

    Finally got the build succeded in VS 2017.Get the package Microsoft.AspNetCore.Http.Features in Droid project.The build suceeded and now trying to launch emulator and test the project.