volosoft / castle-windsor-ms-adapter

Castle Windsor ASP.NET Core / Microsoft.Extensions.DependencyInjection Adapter
https://www.nuget.org/packages/Castle.Windsor.MsDependencyInjection
MIT License
85 stars 29 forks source link

Create a TargetFrameworks net5.0;net6.0;net7.0;net8.0 #47

Open afonsoft opened 5 months ago

afonsoft commented 5 months ago

For better compatibility with NET 5, TargetFrameworks was implemented for NET5, NET6, NET7 and NET8.

Create a TestSuites for this target.

Create a 4.2.0 version.

ismcagdas commented 5 months ago

I can't build the solution. What is the reason for downgrading xunit ?

afonsoft commented 5 months ago

Hi,

I had to downgrade xunit to perform tests on NET 5. image

I use NET 8 SDK for Build

image

image

ismcagdas commented 5 months ago

I get this error when I try to build the solution image

afonsoft commented 5 months ago

I updated the packages to the latest version and built it successfully.

However, only NET5 test scenarios are not executed. image

afonsoft commented 5 months ago

Create a condition for NET5 test scenarios image

This way the tests can be run without problems and keep the packages updated for Net6+

image

And the Build was successful without alerts and errors. image

image

ismcagdas commented 5 months ago

@afonsoft thanks but as far as I can see, this will increase the maintenance cost. We don't want to support all those target frameworks. You can use it in your project and I will leave this PR here if anyone needs such a version.