stryker-mutator / stryker-net

Mutation testing for .NET core and .NET framework!
https://stryker-mutator.io
Apache License 2.0
1.76k stars 175 forks source link

Solution runs fail to start with error no csproj file found #1976

Closed rouke-broersma closed 1 year ago

rouke-broersma commented 2 years ago

Is there any documentation on how to make this work? I added a stryker-config.json to my root (where my .sln-file is) and one to each project that contains which test projects to run. When I then run dotnet stryker or dotnet stryker --solution MySolution.sln in the root it says:

No .csproj file found, please check your project directory at C:\...

Originally posted by @OskarKlintrot in https://github.com/stryker-mutator/stryker-net/issues/459#issuecomment-1076378109

Christian-Oleson commented 2 years ago

Does this run for an individual csproj file if you move to the directory where the csproj file exists and run stryker from there?

rouke-broersma commented 2 years ago

@Christian-Oleson apologies I seem to have not been notified of your question. I assume your question is directed towards @oskarklintrot?