-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with loading Analyzer/Generator assemblies in .NET 7 #2317
Comments
I have had the same issue. You don't even necessarily need to be referencing .NET7, just the 7.0.0 versions of those packages which supposedly support .NET6. It tries to load/find all of the analyzers that are included by default in the SDK, even if you aren't using them. (I'm not sure, but it may also happen when referencing the 6.0.x versions but building with the 7.0 SDK) They seem to be looking for ref assemblies, but I recall recently reading something about ref assemblies not being produced anymore (or at least, in the way they used to be) for inbox packages. Could this be related? Found it: here though perhaps I misunderstand the conversation. |
Same problem here with a .NET 7 Blazor WASM application. |
I have tried rolling back to .NET6 (with version 6 of Nuget packages) but still getting this:
|
Updating to .NET 7 I'm getting errors like:
which then fails to compile due to the generator not running. |
@centreboard I suspect so |
Yeeeep it seems to help, at least it fixes the repro posted in this issue, I tried running Stryker from this branch. |
This is probably improved/fixed in 3.2.0 |
Describe the bug
Stryker emits some warnings on the topic when running under .NET 7. They don't seem to be very helpful though, as otherwise the mutation testing works seemingly fine.
Logs
I will attach the repro but since this might be some kind of an environmental issue, here is also the log:
log-20221114.txt
Expected behavior
Normal execution.
Desktop (please complete the following information):
Additional context
This is not the case for .NET 6.
Repro: Repro.zip
The text was updated successfully, but these errors were encountered: