Skip to content

Commit

Permalink
Added Supported OS attribute (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Aug 30, 2023
1 parent d27b667 commit 1425859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PeyrSharp.Env/Sys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public static bool IsProcessRunning(string processName)
/// </summary>
/// <param name="packageFamilyName">The <c>PackageFamilyName</c> property.</param>
/// <param name="applicationID">The <c>Application Id</c> property in the UWP <c>AppxManifest.xml</c> file.</param>
[SupportedOSPlatform("windows")]
public static void LaunchUWPApp(string packageFamilyName, string applicationID)
{
Process.Start("explorer.exe", $@"shell:appsFolder\{packageFamilyName}!{applicationID}"); // Synthax to launch UWP apps
Expand All @@ -159,6 +160,7 @@ public static void LaunchUWPApp(string packageFamilyName, string applicationID)
/// Launches an UWP application using information from a <see cref="UwpApp"/> object.
/// </summary>
/// <param name="uwpApp">The UWP application to launch.</param>
[SupportedOSPlatform("windows")]
public static void LaunchUWPApp(UwpApp uwpApp)
{
string[] info = uwpApp.AppID.Split("!");
Expand Down

0 comments on commit 1425859

Please sign in to comment.