Closed brian-reichle closed 2 years ago
@yaakov-h, have you seen this before?
https://github.com/WiseTechGlobal/WTG.Analyzers/runs/2912126054?check_suite_focus=true#step:7:23535
System.Reflection.ReflectionTypeLoadException : Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not set up field 'Statement' due to: Could not load type of field 'Microsoft.CodeAnalysis.SQLite.Interop.SqlStatement:_rawStatement' (1) due to: Could not load file or assembly 'SQLitePCLRaw.core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1488e028ca7ab535' or one of its dependencies. assembly:/home/runner/work/WTG.Analyzers/WTG.Analyzers/bin/net472/Microsoft.CodeAnalysis.Workspaces.dll type:SqlStatement member:(null)
Could not load type of field 'Microsoft.CodeAnalysis.SQLite.Interop.SqlConnection:_handle' (0) due to: Could not load file or assembly 'SQLitePCLRaw.core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1488e028ca7ab535' or one of its dependencies.
Could not load type of field 'Microsoft.CodeAnalysis.SQLite.Interop.SqlStatement:_rawStatement' (1) due to: Could not load file or assembly 'SQLitePCLRaw.core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1488e028ca7ab535' or one of its dependencies.
I can't seem to reproduce it locally.
I've seen it somewhere but I don't recall where or if/hoiw it was resolved.
Perhaps a xplat issue that doesn't reproduce on Windows?
@yaakov-h I'm kinda tempted to drop macos & ubuntu
https://github.com/WiseTechGlobal/WTG.Analyzers/runs/4363779875?check_suite_focus=true#step:7:29
I've managed to reproduce it and figured it out.
It's to do with running the net472
tests on non-Windows platforms through Mono.
net6.0
on those platforms works just fine.
We should probably only run the net472
tests on Windows, and run net6.0
on all platforms.
Only updated Roslyn as far as 3.3.1, this is because the 3.4 made a few more methods return nullable types and this produces a lot more errors. I'll upgrade to 3.4 separately and at a later time.
closes #149