Closed mstoicmicrosoft closed 8 months ago
thanks for reporting this. This is indeed a bug, of rare occurrence, but it should be easy to fix.
To answer your question about CS8002
and strong naming: Stryker does not have any requirements on strong naming. It should work anyway (with or without it).
It appears you have conflicting settings in your project: CS8002 is flagged as to be treated as an error ( the /warnaserror+:CS8002,NU1605
part), but also as simple warnings (the /warnaserror-:CA2229,NU5100,CS8002
part).
Stryker tries to respect project settings to better match the desired output, but does not properly cover duplicate/conflicting settings such as this.
A fix will be provided, but the fastest way to fix this, is to find in your settings where CS8002
is listed as to be treated as an error and remove it.
Then Stryker should run smoothly
Thank you for the super quick fix. And the workaround worked - I found the settings where CS8002 was marked as an error so I am unblocked.
Describe the bug /_/src/Stryker.CLI/Stryker.CLI/Program.cs:line 14 is throwing an Unhandled exception. System.ArgumentException: An element with the same key but a different value already exists. Key: 'CS8002' after running several tests in projects.
Logs Console output error:
For us to best assist you in diagnosing the problem we would ask you to run stryker with the option
--log-to-file
or-L
and to attach the resulting logs to the issue.Expected behavior I expected Stryker to finish the analysis and show me the report. I was not expecting an unhandled exception.
Desktop (please complete the following information):
Additional context
When I run msbuild on my sln file I see 0 warnings and 0 errors but if I scroll up there is a section with this line but I don't know what it means:
/warnaserror+:CS8002,NU1605 /warnaserror-:CA2229,NU5100,CS8002