-
Notifications
You must be signed in to change notification settings - Fork 12
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
Target framework to net-standard 2.0 instead of "net6.0" #46
Conversation
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.
Good job
Thanks |
As discussed in the issue, if we target .netstandard 2.1, we are leaving out all .net framework apps that cannot use .netstandard 2.1. I'm fine with it, but I feel like we are missing the plot in here if we do that ;) Can you downgrade it to 2.0 so that the library becomes compatible with .net framework please? (still referencing https://docs.microsoft.com/fr-fr/dotnet/standard/net-standard) |
Oh, actually, I'm pretty much sure we need that default implementation for the logic of things. If we actually need that default implementation, let's then keep it to .netstandard 2.1, it would be sad to pass on the opportunity to use modern features of the language. |
@torendil Hi, it's okay but I have a question
Why? your abstract base implements a default implementation which is same as the interface for your abstract class and overriden implementation (with LuhnCheck) in aluhn class. I don't mind changing it back, but I am curious if I am missing something here. |
No, it is just me forgetting the details :) It is actually ok, my bad :) As .net framework is still very prevalent, I believe it is better to stick with 2.0 at the cost of a few features. There is still the problem with the tests that don't run in this PR. Can you please try to run them locally @hey24sheep? |
It is possible to have multiple platform in a single nuget. |
Multi targeting is what we did on Cardizer. I guess we can go this road Here is what I have in mind
AFAIK net5.0 should handle netstandard2_0 |
I have updated the target framework, test are running now. Do you want me to update the nuget packages as well? |
You can, I'm not sure it is required but you can. |
It is not needed, but nuget update we can do as a separate issue because thats a separate thing. I don't want to break anything also :D |
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.
Nice
Why did the |
You said to multi target in your above response. So I added a multi target. |
We have a new error: #60 |
In response to issue #45, Target framework ported from "net6.0" to "netstandard2.1"