You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: