Skip to content
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

Documentation Request: WinUI 3 Full Trust & Partial Trust - how to configure + Pros/Cons of each #10015

Open
mryderie opened this issue Sep 26, 2024 · 1 comment
Labels
feature proposal New feature proposal needs-triage Issue needs to be triaged by the area owners

Comments

@mryderie
Copy link

mryderie commented Sep 26, 2024

There's a lack of official documentation around the use of Full Trust vs. Partial Trust in WinUI 3.

The WinUI 3 project template comes with Full Trust configured as default, but without docs, it's not clear why that is.

Can we get some offical documentation describing how to configure both, and the pros/cons of each please?

Example:

Partial Trust Cons:

  • File Pickers won't work
  • etc...

Full Trust Cons:

  • If the app is published to the MS Store, it seems that a Privacy Policy URL must be provided (not 100% sure about this, as it's not documented)
  • etc...

Related discussions/issues:
microsoft/WindowsAppSDK#1900
microsoft/WindowsAppSDK#3435
microsoft/WindowsAppSDK#3447
microsoft/WindowsAppSDK#4383
microsoft/WindowsAppSDK#3536
#9557

@mryderie mryderie added the feature proposal New feature proposal label Sep 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 26, 2024
@DarranRowe
Copy link

The two primary locations for this documentation are the Application manifest reference for the Appx manifest, and the MSIX documentation, specifically, Understanding how packaged desktop apps run on Windows.
In particular, if the trust level of the package is full trust/mediumIL, then the environment is almost identical to a regular desktop application. The biggest things that you are likely to run into is that AppData writes and the HKCU registry writes could be redirected, and the working directory for the application may default to System32.
If the trust level of the package is partial trust/appContainer, then the application will be running inside a light weight app container. Starting Windows 11 24H2, you can also opt into BNO redirection and lifecycle handling, making the environment more like a UWP application. How this configured is officially documented in MSIX AppContainer apps, and the restrictions in the environment is documented in AppContainer for legacy apps.

Also, yes this is general desktop application documentation, but WinUI 3 applications are regular WinUI 3 applications. This means that the documentation applies.

For the file pickers, could you upvote this reply if you haven't already? Also, get as many people as you can to upvote it too. The file pickers not working need to be fixed, the team that are responsible for them are not fixing them, so there needs to be a way to show demand for the pickers. This is why I have a request that is actionable by the Windows App SDK team there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature proposal New feature proposal needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

2 participants