Conversation
93985b8 to
7c3af6a
Compare
c90f81c to
3149844
Compare
|
Thanks for the PR! I think we can probably get some version of this merged, but I want to review it more carefully when I have more time. Can you tell me more about the changes to the exception message? I'd prefer to have the test assertion cover the whole message not just that it starts with the whole thing. |
I can't remember the exact details right now, but basically the exception message has changed in newer versions of .NET (Core). It used to contain a line break, but doesn't anymore. It also has added parentheses around the
Asserting on complete error messages like this isn't The Best™ as they are not guaranteed to be stable across versions. The remaining |
|
You can see the changes in the message formatting here: .NET Framework and .NET Core. And the PR changing the exception message format: dotnet/coreclr#25185 |
| public static SemVersion Parse(string version, bool strict = false) | ||
| { | ||
| if (version == null) | ||
| throw new ArgumentNullException(nameof(version)); |
There was a problem hiding this comment.
The lack of this exception was the reason for the following comments in the tests 😅
// TODO that is a strange error message, should be version
@WalkerCodeRanger What do you think? Makes sense? 🤔 |
|
@khellang after having a chance to properly review and look at things, I agree with you that checking the start of the exception message as well as the parameter name is a good solution. Unfortunately, your PR was done against the Two things I did differently, I kept the I am closing this PR since I had to make a new one. The new PR is #67 Add netstandard2.0 to release v2.1.0. I am planning to publish v2.1.0 including this change by the end of March 2022. |
I just opened the PR against your configured main branch on GitHub. I would've gladly rebased my changes on another branch had someone told me 🤷♂️
IMO, this is really bad form and will make sure I won't consider contributing to this project again 😔
You could've just left that feedback and I would've fixed it by tomorrow 😆
Again, you didn't have to make a new one. You chose to drop all my work, even though you could've based your PR on top of my work, even maybe squashed my commits first.
I'm just happy there's a release with the new target coming. At the end of the day that's what matters. But the way this PR was handled left a really bad taste I'm my mouth 😣 |
Closes #30