Adding a dotnet standard with core nugets to a an older core project
I have am creating a .NET standard package that has version 2.1.1 of the Microsoft.AspNetCore.Http nuget package in it.
I need to add this nuget to all of our core projects and I add it to a test core project of the same version and it works great, but when I try to add it to a project with version 2.0.6 of Microsoft.AspNetCore.All and I get a version conflict
Assembly 'Nuget.Project' with identity 'Nuget.Project, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.AspNetCore.Http.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=xxxxx' which has a higher version than referenced assembly 'Microsoft.AspNetCore.Http.Abstractions' with identity 'Microsoft.AspNetCore.Http.Abstractions, Version=2.0.3.0, Culture=neutral, PublicKeyToken=xxxxxx'
I changed the tokens to x's and replaced the name of the project for privacy reasons.
My Nuget is accessing HttpContext so I need the Core in it. I don't know how to make the nuget package okay to put on older versions
0 comments:
Post a Comment