Skip to content

Use writable UserSecrets path on Apple mobile - #133165

Draft
svick wants to merge 1 commit into
dotnet:mainfrom
svick:user-secrets-apple-mobile
Draft

Use writable UserSecrets path on Apple mobile#133165
svick wants to merge 1 commit into
dotnet:mainfrom
svick:user-secrets-apple-mobile

Conversation

@svick

@svick svick commented Sep 3, 2026

Copy link
Copy Markdown
Member

Fixes #132074
Fixes #60584

Summary

  • ignore the unwritable HOME directory when resolving the UserSecrets path on iOS, tvOS, and MacCatalyst
  • fall back to the platform-specific writable application data directory
  • re-enable the UserSecrets tests previously disabled on iOS and tvOS

Testing

  • dotnet build src\libraries\Microsoft.Extensions.Configuration.UserSecrets\src\Microsoft.Extensions.Configuration.UserSecrets.csproj
  • dotnet build /t:test src\libraries\Microsoft.Extensions.Configuration.UserSecrets\tests\Microsoft.Extensions.Configuration.UserSecrets.Tests.csproj
  • dotnet build /t:test src\libraries\Microsoft.Extensions.Configuration\tests\FunctionalTests\Microsoft.Extensions.Configuration.Functional.Tests.csproj

Note

This pull request description was drafted with GitHub Copilot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

@svick

svick commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant