Using the library in MacOs project
klioqc opened this issue · 2 comments
Hello,
I am trying to use this library in the project with
net6.0-macos
It fails with the error
Dependency resolution failed for component [...] with error code -2147450750. Detailed error: Hostpolicy must be initialized and corehost_main must have been called before calling corehost_resolve_component_dependencies
This happens on this call
_dependencyResolver = new AssemblyDependencyResolver(mainAssemblyPath);
here
I found a description for this problem in the Xamarin GitHub [System.Runtime.Loader.AssemblyDependencyResolver doesn't work in macOS(https://github.com/xamarin/xamarin-macios/issues/15685)
and they write they are not going to do anything.
Is there a way to avoid this class instantiation? I looked into AssemblyLoadContext config setting but it does not allow to avoid that resolver instantiation.
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please comment if you believe this should remain open, otherwise it will be closed in 14 days. Thank you for your contributions to this project.
Closing due to inactivity.
If you are looking at this issue in the future and think it should be reopened, please make a commented here and mention natemcmaster so he sees the notification.