system.runtime.loader

Chetra Thinakaran 1 Reputation point
2021-03-18T09:09:28.517+00:00

I am using VS 2019, version 16.4.2 and Xamarin Android version 10.1.1 and Mono Android version 9.0.

I have an Xamarin Android project and a Class Library(.Net Standard 2.0) in a solution. I am using castle.windsor (installed from nuget manager) in the class library. I am able to build and run the android app, but when it hits a method in the class library that uses "AssemblyLoadContext" then it breaks with error 'Could not load file or assembly 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.'.

Please help me to resolve this.

Thanks in advance,

Microsoft Q&A
Microsoft Q&A
Use this tag to share suggestions, feature requests, and bugs with the Microsoft Q&A team. The Microsoft Q&A team will evaluate your feedback on a regular basis and provide updates along the way.
685 questions
0 comments No comments
{count} votes