-
Notifications
You must be signed in to change notification settings - Fork 28
Downgrade Best.Conventional to target netstandard20 (rather than netstandard21 which excludes .NET Framework consumption) #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Conventional can still be used on .NET Framework
- Feature 'nullable reference types' is not available in C# 7.3. - Please use language version 8.0 or greater.
- System.Data.SqlClient version 4.8.6 removes that. - See: https://www.nuget.org/packages/System.Data.SqlClient
- but, there is no reason to reference this directly AFAIK? - app still compiles fine - all tests still pass - I'm not sure what this is actually doing here? :D
NETSDK1138 The target framework 'netcoreapp3.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
Build is failing because the AppVeyor images being used are out of date. We need to change the following:
I could do this, but I don't have access to your AppVeyor. If you can provide access, I will fix this up. :) |
This has reminded me of this issue #84. I'm wondering since the 5.2.x version of Update I've tested the above issue and it seems to no longer be a big problem. I think for the moment we will go for the minor bump and leave it at that. One thing we do need to do in this PR is to also bump the A nice improvement for the future will be to add some conditionals for build-time to run some |
I've updated the AppVeyor images, thanks for the prompt! Build is green. |
Yes, this is deliberate. I only wanted to support mainline of the library, so don't have the build infrastructure set up to build and publish hotfixes. |
Fixes #84 |
This also fixes: #91 ( |
@todthomson I've updated a previous comment, but will re-state this ask here in case it was missed:
|
Something like this should do it:
|
All good, I didn't miss it, I'm updating my PR as we speak. :) |
The Visual Studio 2022 agent (Windows Build VM) in AppVeyor has .NET 8 SDK 8.0.401, so I propose we that for The latest version of the .NET SDK v8 is 8.0.403 so that should be fine: I agree that using |
Agreed. This can be done as a separate PR (and a separately "major" versioned release) anyhow if/when it's needed. Being that this will move Conventional from It also separates that from the move back to |
PR updated to update |
The tests don't look to be running on "Visual Studio 2022" worker. From looking at the above, I think it will be because the I'll see if I can fix. :) |
feature: Uses the latest patch level for the specified: major, minor, and feature band. If not found, rolls forward to the next higher feature band within the same major/minor and uses the latest patch level for that feature band. If not found, fails. See: https://learn.microsoft.com/en-us/dotnet/core/tools/global-json#rollforward (cherry picked from commit a575629)
Will push an update to (hopefully) fix this. |
That test script isn't right at all. I'll update it shortly once the build is 🟢 with your current changes. |
I was hoping to do that, but I couldn't find the source for the "test script" in the repo, so I'm assuming it's elsewhere. It looks like it would be as simple as fixing this line:
to:
Though that may not be the best / most correct fix. |
Yup, no scripts in the repo because I don't want rascals mining bitcoin via my CI builds 😆 that will change once I move to GHA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping me work through this one @todthomson! Much appreciated.
Easy, you're welcome. Ultimately, you're also helping me to squash some CVEs in 100+ test fixtures, so thanks to you too mate. Glad to see you got the tests running again too. 😁 |
This commit a72a988 bumped Conventional from
netstandard2.0
tonetstandard2.1
.Unfortunately, this makes it impossible for .NET Framework projects to use
Best.Conventional
versions10.x
and11.x
.Older versions of
Best.Conventional
depend on older versions ofSystem.Data.SqlClient
which have CVEs.My understanding is that there is no way currently to release hotfixes to older versions of
Best.Conventional
.By targeting back to
netstandard2.0
older .NET Framework projects can still use the latest version ofBest.Conventional
(with the latest and greatest features) with any current or future CVEs also able to be addressed easily and correctly (here).I have tested this using:
Best.Conventional
tests (all tests still pass).Please advise if there is anything else I can do to assist in getting this PR ready to land. :)
I will provide a separate PR to fix the same issue in
Best.Conventional.Roslyn
once this has landed, asBest.Conventional.Roslyn
depends on theBest.Conventional
NuGet package.