Grabacr07 / VirtualDesktop

C# wrapper for the Virtual Desktop API on Windows 11.
MIT License
631 stars 135 forks source link

Latest windows 10 update --> Binding failure: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.5.0.0 #48

Open wil70 opened 4 years ago

wil70 commented 4 years ago

Hello, I use all latest (windows 10 latest June 2020 update) I have .net 4.8 and 4.72 Whe I run the application I got the following error: 'BindingFailure' : 'The assembly with display name 'Microsoft.CodeAnalysis' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Any idea how I could solved this? Thank you!

wil70 commented 4 years ago

I guess it is related to bug #44 as I'm also using .Net Framework instead of .Net Core.... How do we make it work for .Net Framework?

wil70 commented 4 years ago

It works great with an app that uses .net core 3.1, but it fails with an app that uses .net framework 4.7.2 and 4.8 , any idea how to solve this? Thank you!! image