From f8bfc64e97af84b025da1806b33cd2530cd377ec Mon Sep 17 00:00:00 2001 From: Mike Battista <13860912+mikebattista@users.noreply.github.com> Date: Mon, 21 Apr 2025 14:43:13 -0400 Subject: [PATCH] Updating sample references in preparation for breaking changes in the sample folders Switched to an existing short URL which I will update on the backend once the updated samples are published. --- .../desktop/modernize/grant-identity-to-nonpackaged-apps.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hub/apps/desktop/modernize/grant-identity-to-nonpackaged-apps.md b/hub/apps/desktop/modernize/grant-identity-to-nonpackaged-apps.md index b1a58db3db..fe4aa4e160 100644 --- a/hub/apps/desktop/modernize/grant-identity-to-nonpackaged-apps.md +++ b/hub/apps/desktop/modernize/grant-identity-to-nonpackaged-apps.md @@ -149,8 +149,8 @@ Note the below important details about this code: * Set `externalLocation` to the absolute path of your application's installation directory (without any executable names) * Set `packagePath` to the absolute path of the identity package produced in the previous step (with the file name) -For a complete example including unregistering the package on uninstall, see [`StartUp.cs`](https://github.com/microsoft/AppModelSamples/blob/0c019d835d194dfc65ee0c0663086582d48165a9/Samples/SparsePackages/PhotoStoreDemo/StartUp.cs#L146-L220). +For production-ready code in C# and C++, see [Sample apps](#sample-apps) below. The samples also demonstrate how to unregister the identity package on uninstall. -## Sample app +## Sample apps -See the [SparsePackages](https://github.com/microsoft/AppModelSamples/tree/master/Samples/SparsePackages) sample for a fully functional sample app that demonstrates how to grant package identity to a desktop app by registering an identity package. +See the [PackageWithExternalLocation](https://aka.ms/sparsepkgsample) samples for fully functional C# and C++ apps that demonstrate how to register an identity package.