Unable to run Styker in WSL #2687
-
Hi, > dotnet stryker
_____ _ _ _ _ ______ _______
/ ____| | | | | \ | | ____|__ __|
| (___ | |_ _ __ _ _| | _____ _ __ | \| | |__ | |
\___ \| __| '__| | | | |/ / _ \ '__| | . ` | __| | |
____) | |_| | | |_| | < __/ | | |\ | |____ | |
|_____/ \__|_| \__, |_|\_\___|_| (_)|_| \_|______| |_|
__/ |
|___/
Version: 3.10.0
[16:09:22 INF] Analysis starting.
[16:09:22 INF] Identifying projects to mutate in /home/hjahre/Projects/stryker/stryker-poc.sln. This can take a while.
[16:09:23 INF] Found 1 source projects
[16:09:23 INF] Found 1 test projects
[16:09:24 INF] Found project /home/hjahre/Projects/stryker/stryker-test/stryker-test.csproj to mutate.
[16:09:24 INF] Analysis complete.
[16:09:24 INF] Building solution stryker-poc.sln
[16:09:25 INF] Unable to find msbuild using vswhere, using fallback locations
[16:09:25 INF] Time Elapsed 00:00:02.5269191
Unhandled exception. System.IO.FileNotFoundException: MsBuild.exe could not be located. If you have MsBuild.exe available but still see this error please create an issue.
at Stryker.Core.ToolHelpers.MsBuildHelper.GetMsBuildPath(IProcessExecutor processExecutor)
at Stryker.Core.Initialisation.InitialBuildProcess.InitialBuild(Boolean fullFramework, String projectPath, String solutionPath, String msbuildPath)
at Stryker.Core.Initialisation.InitialisationProcess.BuildProjects(StrykerOptions options, IEnumerable`1 projects)
at Stryker.Core.Initialisation.ProjectOrchestrator.MutateProjects(StrykerOptions options, IReporter reporters, ITestRunner runner)+MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Stryker.Core.StrykerRunner.RunMutationTest(IStrykerInputs inputs, ILoggerFactory loggerFactory, IProjectOrchestrator projectOrchestrator)
at Stryker.CLI.StrykerCli.RunStryker(IStrykerInputs inputs) in /_/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 93
at Stryker.CLI.StrykerCli.<>c__DisplayClass10_0.<Run>b__0() in /_/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 68
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass143_0.<OnExecute>b__0(CancellationToken _)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Stryker.CLI.StrykerCli.Run(String[] args) in /_/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 74
at Stryker.CLI.Program.Main(String[] args) in /_/src/Stryker.CLI/Stryker.CLI/Program.cs:line 14 Are there any workarounds for this, or should I report it as a bug? The code can be found in my repository |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, we don't support dotnet framework on non-windows platforms sorry. I assume you use mono to make this work? We don't support mono either. |
Beta Was this translation helpful? Give feedback.
-
Ah, ok.. That's too bad. |
Beta Was this translation helpful? Give feedback.
Hi, we don't support dotnet framework on non-windows platforms sorry. I assume you use mono to make this work? We don't support mono either.