"Error CS8034: failed to load Analyzer", if analyzer is packed with native dependencies #63396
Labels
Area-Analyzers
Area-Compilers
Resolution-Duplicate
The described behavior is tracked in another issue
Version Used: VS17.3
Steps to Reproduce:
OR
analyzers\dotnet\cs\Libraries\x64\foo.dll
)Expected Behavior:
The analyzer should work just fine and Roslyn should ignore those bundled native libs (as they're not assembly references).
Actual Behavior:
Additional context:
This is me trying to follow up on #63290 and the conversation I had with @CyrusNajmabadi, and doing work to stop doing IO from my generator in ComputeSharp (see Sergio0694/ComputeSharp#349). Currently, I'm bundling two native .dll-s as embedded resources, and then extracting them into a temp folder to load them and P/Invoke into them. The PR is changing that to instead pack those libraries with the analyzer, so they're copied in a subdirectory in the analyzer folder, from where I can load them directly (without additional IO).
For some reason though, Roslyn is trying to load those .dll-s automatically, and then failing due to them being native libs.
Questions:
cc. @sharwell @chsienki
The text was updated successfully, but these errors were encountered: