JasperFx / lamar

Fast Inversion of Control Tool and Successor to StructureMap
https://jasperfx.github.io/lamar
MIT License
566 stars 117 forks source link

Microsoft.Extensions.DependencyInjection.Abstractions dependency version range #236

Closed bbbush closed 4 years ago

bbbush commented 4 years ago

Hi-

Just want to report that some packages cannot install due to version conflict. The 3.x package of Microsoft.Extensions.DependencyInjection.Abstractions was released a while ago https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection.Abstractions/3.0.0 and Lamar has a dependency version range of 2.0+

One of such package is Microsoft.Extensions.Logging.Debug 3.1.2

Thanks!

kevindqc commented 4 years ago

Had the same issue and found this in Lamar.csproj:

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
    <PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="[2.0.0, 3.0.0)" />
  </ItemGroup>

  <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
    <PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="[3.0.0, 4.0.0)" />
  </ItemGroup>

Not sure why I need to use netstandard2.1 for this but switching to it works. Hopefully I don't need my DLLs in a .NET Framework project in the future! lol

bbbush commented 4 years ago

I get it. There is no issue with Lamar then.

Thanks!

On Fri, Feb 21, 2020, 11:06 AM Kevin Doyon notifications@github.com wrote:

Had the same issue and found this:

Not sure why I need to use netstandard2.1 for this but switching to it works. Hopefully I don't need my DLLs in a .NET Framework project in the future! lol

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JasperFx/lamar/issues/236?email_source=notifications&email_token=AAALDUJ6SZMJA45BTYX6FOTREAC2TA5CNFSM4KYUPCF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMTMTQY#issuecomment-589744579, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALDUOCUYSZKMRZ5MCO6ODREAC2TANCNFSM4KYUPCFQ .