question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for .net 5

See original GitHub issue

Describe the bug stryker does not support .net5 framework. The issue is with the library used by Stryker (Buildalyzer). The BuildAnalyzer is parsing the targetframework of the project and while parsing the target framework it does not the get format it needs which is netcoreappx.x

Logs dotnet stryker --solution-path <solution_path> --reporters “[‘json’]”


/ | | | | | \ | | | | | ( | | _ __ _ | | _____ _ __ | | | | | | _ | | '| | | | |/ / _ \ '| | . ` | | | | ) | || | | || | < / | | |\ | | | | |_/ _|| _, ||____|| ()|| _|____| || / | |/

Version: 0.20.0 (beta)

[16:05:42 INF] Identifying project to mutate. [16:05:42 ERR] An error occurred during the mutation test run System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.String.get_Chars(Int32 index) at Buildalyzer.Environment.EnvironmentFactory.IsFrameworkTargetFramework(String targetFramework) at Buildalyzer.Environment.EnvironmentFactory.<OnlyTargetsFramework>b__11_0(String x) at System.Linq.Enumerable.All[TSource](IEnumerable1 source, Func2 predicate) at Buildalyzer.Environment.EnvironmentFactory.OnlyTargetsFramework(String targetFramework) at Buildalyzer.Environment.EnvironmentFactory.GetBuildEnvironment(String targetFramework, EnvironmentOptions options) at Buildalyzer.Environment.EnvironmentFactory.GetBuildEnvironment(String targetFramework) at Buildalyzer.ProjectAnalyzer.Build(String targetFramework) at Buildalyzer.ProjectAnalyzer.Build() at Stryker.Core.Initialisation.ProjectFileReader.AnalyzeProject(String projectFilePath, String solutionFilePath) in D:\a\1\s\src\Stryker.Core\Stryker.Core\Initialisation\ProjectFileReader.cs:line 47r.cs:line 47 at Stryker.Core.Initialisation.InputFileResolver.ResolveInput(StrykerOptions options) in D:\a\1\s\src\Stryker.Core\Stryker.Core\Initialisation\InputFileResolver.cs:line 74 at Stryker.Core.Initialisation.InitialisationProcess.Initialize(StrykerOptions options) in D:\a\1\s\src\Stryker.Core\Stryker.Core\Initialisation\InitialisationProcess.cs:line 43 at Stryker.Core.StrykerRunner.RunMutationTest(StrykerOptions options, IEnumerable`1 initialLogMessages) in D:\a\1\s\src\Stryker.Core\Stryker.Core\StrykerRunner.cs:line 66 [16:05:42 INF] Time Elapsed 00:00:00.5388895

Expected behavior Should be able to run without any error

Desktop (please complete the following information):

  • OS: Windows
  • Type of project core
  • Framework Version .net5
  • Stryker Version: 0.20.0 (beta)

Additional context Not sure if its an issue or enhancement

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
rouke-broersmacommented, Jan 13, 2021

Thank @daveaglick and @slang25 😉

2reactions
rouke-broersmacommented, Jan 20, 2021

@pankti11 the fix has just been released

Read more comments on GitHub >

github_iconTop Results From Across the Web

.NET and .NET Core official support policy - Dot.net
Out of support versions ;.NET 5, November 10, 2020, 5.0.17, May 10, 2022, May 10, 2022 ;.NET Core 3.1, December 3, 2019, 3.1.32,...
Read more >
.NET 5.0 will reach End of Support on May 10, 2022 - . ...
NET 5.0 will reach end of support on May 10, 2022. After the .NET May updates, Microsoft will no longer provide servicing updates,...
Read more >
.NET 5 has reached End of Life
NET 6 is ending and support for .NET 5 ends on May 10, 2022 (yes, in a couple of days). .NET Supported versions...
Read more >
NET 5 - Supported OS versions
.NET 5 - Supported OS versions · Windows · Linux · macOS · Support changes from .NET Core 3.1 · Out of support...
Read more >
Microsoft ends support for .NET 5.0
Support will end for Microsoft's .NET 5.0 software platform on May 8, despite its being officially released fewer than 17 months ago. Following ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found