xunit-dependency-injection
xunit-dependency-injection copied to clipboard
Make it work with .NET 6 to .NET 9 and use min versions of dependent packages
Allows targeting .NET 6 through .NET 9 using the same NuGet package. This is nice for me as some projects are using .NET 8 for LTS and some are on .NET 9.
Allows targeting .NET 6 through .NET 9 using the same NuGet package. This is nice for me as some projects are using .NET 8 for LTS and some are on .NET 9.
Thanks for opening the PR @frogcrush. I think it makes sense. Please give me a couple of days to review, test and merge.
@frogcrush I just had a chance to glance your changes. This is what I am getting:
How to resolve such warnings?
Hey, I'm pretty sure that is because to target .NET 6, it uses Microsoft.Extensions.* version 6, .NET 7 uses V7, etc. as say V9 is not tested against .NET 6 and you will get compiler warnings.
If you manage packages for only the test project, you will correctly see that no package updates are available, as NuGet will select the correct version of dependent libraries.
@frogcrush Thanks for your inputs. I'd rather a flawless compile. Can we possibly get rid of .NET 6.0 at all as it's getting closer to its end of lifecycle?
@frogcrush Can you please suggest a plan to test the produced NuGet libraries before deploying to NuGet? How will the end up in NuGet? I have a limited time and I prefer not to enter into any significant challenges in undoing the changes or taking care of broken code in the community.