abp icon indicating copy to clipboard operation
abp copied to clipboard

Dependencies targeting net6.0 framework

Open lommez opened this issue 2 years ago • 3 comments

I'm facing a problem related to Castle Core 5.1.1 because it depends on the System.Diagnostics.EventLog version 6.0.0 assembly, but my project is targeting .NET 8.0, and this is causing assemblies from previous versions of the framework to be included in the .NET 8.0 when my project is published. Is there some way to avoid that?

Here is the csproj of CastleCore:

https://github.com/castleproject/Core/blob/master/src/Castle.Core/Castle.Core.csproj

On VS Modules window, i can see assemblies that was not loaded beucase is using a different .net version:

image

lommez avatar Feb 06 '24 16:02 lommez

hi @lommez

We can't change Castle, but you can feedback this to castleproject. We need to implement the interceptor using Castle.Core.AsyncInterceptor

maliming avatar Feb 07 '24 01:02 maliming

But would maintaining a project that has not had updates since 2022 be a good strategy for ABP? This can be a limiting factor for many developers. Maybe looking for other libraries that are active, or even implementing something of your own, would not have future problems.

lommez avatar Feb 07 '24 12:02 lommez

hi

I'm not sure, but you can try to add the high version package to your project. <PackageReference Include="System.Diagnostics.EventLog" Version="8.0.0" />

maliming avatar Feb 08 '24 06:02 maliming