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
{{ message }}
Repository navigation
Change Environment.GetFolderPath to be compatible with tvOS #34007
As part of the mobile workloads migration, we need to ensure the apps are behaving consistently when calling into Environment.GetFolderPath. There is already some implementation for iOS but it looks like it's not fully compatible with existing Mono code
The second part is to ensure there is full code coverage for all SpecialFolder values.
changed the title [-]Change Environment.GetFolderPath to be compatible with iOS/tvOS[/-][+]Change Environment.GetFolderPath to be compatible with tvOS[/+]on Nov 25, 2020
Activity
marek-safar commentedon Mar 24, 2020
/cc @EgorBo
[-]Change Environment.GetFolderPath to be compatible with iOS/tvOS[/-][+]Change Environment.GetFolderPath to be compatible with tvOS[/+]akoeplinger commentedon Nov 25, 2020
We still have an important TODO that needs to be fixed for tvOS:
runtime/src/mono/netcore/System.Private.CoreLib/src/System/Environment.iOS.cs
Lines 39 to 41 in f48c8d5
Reopening to track that.
marek-safar commentedon Jul 14, 2021
@steveisok please assign
directhex commentedon Aug 16, 2021
It looks like NSCachesDirectory is the preferred alternative for tvOS.
Ref: firebase/firebase-ios-sdk#2777
Ref: https://developer.apple.com/forums/thread/19002
akoeplinger commentedon Aug 16, 2021
@directhex on the mono/mono version we've been using a subdirectory in
NSLibraryDirectory: https://github.com/mono/mono/blob/main/mcs/class/corlib/System/Environment.iOS.cs#L21-L30