-
Notifications
You must be signed in to change notification settings - Fork 319
/
Constants.cs
34 lines (30 loc) · 1.92 KB
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsSandboxExtension;
internal sealed class Constants
{
public const string WindowsSandboxExe = "WindowsSandbox.exe";
public const string ProviderDisplayName = "Windows Sandbox";
public const string ProviderId = "Microsoft.WindowsSandbox";
public const string Thumbnail = "ms-appx:///Assets/windows-sandbox-thumbnail.jpg";
// We use different icon locations for different builds. Note these are ms-resource URIs, but are used by Dev Home to load the providers icon.
// from the extension package. Extensions that implement the IComputeSystemProvider interface must provide a provider icon in this format.
// Dev Home will use SHLoadIndirectString (https://learn.microsoft.com/windows/win32/api/shlwapi/nf-shlwapi-shloadindirectstring) to load the
// location of the icon from the extension package.Once it gets this location, it will load the icon from the path and display it in the UI.
// Icons should be located in an extension resource.pri file which is generated at build time.
// See the MakePri.exe documentation for how you can view what is in the resource.pri file, so you can find the location of your icon.
// https://learn.microsoft.com/windows/uwp/app-resources/makepri-exe-command-options. (use MakePri.exe in a VS Developer Command Prompt or
// Powershell window)
#if CANARY_BUILD
public const string ExtensionIcon = "ms-resource://Microsoft.Windows.DevHome.Canary/Files/Assets/windows-sandbox-icon.png";
#elif STABLE_BUILD
public const string ExtensionIcon = "ms-resource://Microsoft.Windows.DevHome/Files/Assets/windows-sandbox-icon.png";
#else
public const string ExtensionIcon = "ms-resource://Microsoft.Windows.DevHome.Dev/Files/Assets/windows-sandbox-icon.png";
#endif
}