system.runtime.loader
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,