Open RobbiewOnline opened 4 years ago
This issue occurs because it's trying to execute a function from an assembly which would only be present on Windows. I'll try to fix this soon.
Same error Although new File(..) works well.
at (wrapper managed-to-native) StandardStorage.StorageUtilities.GetModuleFileName(System.Runtime.InteropServices.HandleRef,System.Text.StringBuilder,int)
at StandardStorage.StorageUtilities.GetModuleFileNameLongPath (System.Runtime.InteropServices.HandleRef hModule) [0x00042] in <492e9128255c4fa2885761586862f4f3>:0
at StandardStorage.StorageUtilities.get_ExecutablePath () [0x00021] in <492e9128255c4fa2885761586862f4f3>:0
at StandardStorage.StorageUtilities.GetAppFileVersionInfo () [0x00046] in <492e9128255c4fa2885761586862f4f3>:0
at StandardStorage.StorageUtilities.get_CompanyName () [0x00042] in <492e9128255c4fa2885761586862f4f3>:0
at StandardStorage.StorageUtilities.GetAppSpecificStoragePathFromBasePath (System.String basePath) [0x00000] in <492e9128255c4fa2885761586862f4f3>:0
at StandardStorage.FileSystem.get_LocalStorage () [0x00007] in <492e9128255c4fa2885761586862f4f3>:0
As a fix for now worth using
new Folder(Environment.GetFolderPath(Environment.SpecialFolder.Personal))
This all works fine on iOS, but on Android when I try to access Current.LocalStorage I get an error about GetModuleFileName, this is what I invoked...
But this raises an exception on Android...
The full method for context is...