Skip to content
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

Qowaiv 4.6.2 depends on DotNetProjectFile.Analyzers #321

Closed
Sjaaky opened this issue Jul 31, 2023 · 1 comment
Closed

Qowaiv 4.6.2 depends on DotNetProjectFile.Analyzers #321

Sjaaky opened this issue Jul 31, 2023 · 1 comment
Assignees
Labels

Comments

@Sjaaky
Copy link
Collaborator

Sjaaky commented Jul 31, 2023

Some of our unittests failed with this error:
System.TypeLoadException : Declaration referenced in a method implementation cannot be a final method. Type: 'Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions'. Assembly: 'Microsoft.CodeAnalysis.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Which indicates a mismatch between the currently loaded type and the type against which a library was compiled.

The build also gave a warning like this:
CS9057 The analyzer assembly '...\packages\dotnetprojectfile.analyzers\1.0.7\analyzers\DotNetProjectFile.Analyzers.dll' references version '4.6.0.0' of the compiler, which is newer than the currently running version '4.5.0.0'.

After some digging Qowaiv 4.6.2 seems to reference dotnetprojectfile.analyzers. Since dotnetprojectfile.analyzers uses a newer .net version than our project (we use net6.0), this leads to runtime errors.

I don't think that Qowaiv should depend on the DotNetProjectFile.Analyzers.

@Corniel
Copy link
Collaborator

Corniel commented Aug 1, 2023

@Corniel Corniel closed this as completed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants