Skip to content

Change Environment.GetFolderPath to be compatible with tvOS #34007

Description

@marek-safar

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.

Activity

  1. added this to the 5.0 milestone on Mar 24, 2020
  2. marek-safar commented on Mar 24, 2020

    @marek-safar
    ContributorAuthor
  3. changed the title [-]Change Environment.GetFolderPath to be compatible with iOS/tvOS[/-] [+]Change Environment.GetFolderPath to be compatible with tvOS[/+] on Nov 25, 2020
  4. akoeplinger commented on Nov 25, 2020

    @akoeplinger
    Member

    We still have an important TODO that needs to be fixed for tvOS:

    // TODO: fix for tvOS (https://github.com/dotnet/runtime/issues/34007)
    // The "normal" NSDocumentDirectory is a read-only directory on tvOS
    // and that breaks a lot of assumptions in the runtime and the BCL

    Reopening to track that.

  5. modified the milestones: 5.0.0, 6.0.0 on Nov 25, 2020
  6. removed
    untriagedNew issue has not been triaged by the area owner
    on Nov 25, 2020
  7. marek-safar commented on Jul 14, 2021

    @marek-safar
    ContributorAuthor

    @steveisok please assign

  8. directhex commented on Aug 16, 2021

    @directhex
    Contributor

    It looks like NSCachesDirectory is the preferred alternative for tvOS.

    Ref: firebase/firebase-ios-sdk#2777
    Ref: https://developer.apple.com/forums/thread/19002

  9. akoeplinger commented on Aug 16, 2021

    @akoeplinger
    Member

    @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

  10. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 16, 2021
  11. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 24, 2021
  12. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 24, 2021
  13. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 27, 2021
  14. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 27, 2021
  15. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 30, 2021
  16. ghost locked as resolved and limited conversation to collaborators on Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions