Roslyn analyzer - Getting Could not load file or assembly … An attempt was made to load a program with an incorrect format


Bump into this issue while trying to deploy my analyzer to Visual Studio projects and i was wondering what is going on. I guess this is a problem happens across all project. My Visual Studio is running x86 while my build target x64.



D'oh... i know right. :)

The solution?

Right click on your project -> Build -> Platform Target ->  Any CPU

That's it! :)



Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type