-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConfigurationReader in Android throw exceptions. #150
Comments
I'm betting this would also fail on iOS (though I have no way to test this). Turns out the problem on Android is that everything is inside the APK. There would be no way to dynamically scan DLLs. I think the real question is why If so, this package probably won't work at all, I don't think reflection works in that case. At least, not without compiler support that I don't think exists yet (the stuff MS is working on based on the Unity game engine's IL2CPP compiler, which was originally started to get around iOS rules against things like JIT compilers). This may be a "wontfix". |
Fortunately, iOS doesn't have this issue. Here is how I get the base directory in android.
|
This should get easier to implement once the refactorings in PR #151 are merged. |
ConfigurationReader.cs line 312.
query = from outputAssemblyPath in System.IO.Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory, "*.dll")
AppDomain.CurrentDomain.BaseDirectory cannot be used in Android platform, it always return null.
Due to this, a System.ArgumentNullException will be thrown out.
The text was updated successfully, but these errors were encountered: