Closed richardwerkman closed 7 months ago
I just tried and I can't even pass through the analysis phase: I get a missing DLL exception with Buildalizer. Weird... Update: enumerating Buildalyzer results lead to file not found exception for nuget.Framework 6.0, while the project (and buildalyzer) refers to 6.7... crap Fuslogvw shows that the failed attempts from MsBuild. I suspect some global prop file here....
Re Update: I am facing this problem: https://github.com/daveaglick/Buildalyzer/issues/206
This works ok if I use Stryker against a copy of the project. In short, you cannot use Buildalyzer against the currently running project (see https://github.com/daveaglick/Buildalyzer/issues/206) Otherwise weird shit happens :-)
@dupdob we have this problem when running on a copy 😅
Sorry about that. No problem here, using master/head With VS 2022 but not sure this is a factor
To be clear, I'm not only having this issue while debugging stryker but also using the actual installed tool (latest version). Just running dotnet stryker
in the src directory.
@dupdob and you're running on windows? Maybe the OS has influence on this
yes, windows update: it also works with the distribution. Do you have the same issue with master/Head ? maybe it is due to some local change(s)
To test this I cloned stryker fresh on another machine and ran stryker there. It worked! So indeed there seems to be something wrong with my local machine. I've tested there on 2 seperate stryker repos and both gave the error. I'll investige further if this is thanks to local changes like you suggest, or if this is because of the state of my machine
After some further investigation (and asking others to try running stryker on stryker) these are my findings:
@richardwerkman: nope, Windows 11 here
I can check again if you want, but it works on my machine with a copy of the project
In that case it could also be the dotnet version. I'm on the latest (7.0.401)
but Stryker is built against Net 6
here are the runtimes I have
Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0-preview.5.23302.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0-preview.7.23375.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0-preview.5.23280.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0-preview.7.23375.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0-preview.5.23302.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0-preview.7.23376.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]```
I close this issue as it looks like a transient/setup issue. Feel free to reopen it with an update if the issue is till present
Describe the bug When running
dotnet stryker
on stryker itself we get an unexpected exception:Reproduction Run stryker in the
src/
dir of the stryker repo.Expected behavior Stryker runs on the solution file and succeeds.
Desktop (please complete the following information):
Additional context I've investigated buildalyzer to be the source of the issue. Somehow buildalyzer fails to build all projects except for
DataCollector
. However I haven't figured out WHY buildalyzer is failing to build these projects.