-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Dotnet 5 support #163
Comments
Looks like there's actually a couple things going on here. Hopefully #164 resolves issues with identifying .NET 5, but the stack trace also suggests a bug in the code. Here's the code for private bool IsFrameworkTargetFramework(string targetFramework) =>
targetFramework.StartsWith("net", StringComparison.OrdinalIgnoreCase)
&& targetFramework.Length > 3
&& char.IsDigit(targetFramework[4]); The stack trace suggests it's breaking on When brings up another question for me - what was the value we were getting here for the target framework that was exactly 4 characters long. I suspect it was "net5" which is interesting in and of itself because the technically correct TFM for .NET 5 is "net5.0". If it had been "net5.0" this code actually would have worked, though for the wrong reasons! It would have checked if the 4th character, a ".", was a digit and failed - and that only would have worked because the other .NET Framework TFMs all have the versions without a ".". tl;dr: This was a really interesting bug with several things I need to clean up here. |
Nice find, I didn't spot the off-by-one bug 🤦 |
It seems that due to dotnet 5 no longer being called dotnet core the target framework parsing is broken.
See stryker-mutator/stryker-net#1369
The text was updated successfully, but these errors were encountered: