Constants.cs (2151B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="Constants.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.WinGet.Client.Engine.Common 8 { 9 /// <summary> 10 /// This class contains all of the configurable constants for this project. 11 /// </summary> 12 internal static class Constants 13 { 14 /// <summary> 15 /// WinGet package family name. 16 /// </summary> 17 #if USE_PROD_CLSIDS 18 public const string WingetPackageFamilyName = "Microsoft.DesktopAppInstaller_8wekyb3d8bbwe"; 19 #else 20 public const string WingetPackageFamilyName = "WinGetDevCLI_8wekyb3d8bbwe"; 21 #endif 22 23 /// <summary> 24 /// Winget executable name. 25 /// </summary> 26 #if USE_PROD_CLSIDS 27 public const string WinGetExe = "winget.exe"; 28 #else 29 public const string WinGetExe = "wingetdev.exe"; 30 #endif 31 32 /// <summary> 33 /// Name of PATH environment variable. 34 /// </summary> 35 public const string PathEnvVar = "PATH"; 36 37 /// <summary> 38 /// One MB. 39 /// </summary> 40 public const int OneMB = 1024 * 1024; 41 42 /// <summary> 43 /// Repository owners. 44 /// </summary> 45 public class RepositoryOwner 46 { 47 /// <summary> 48 /// Microsoft org. 49 /// </summary> 50 public const string Microsoft = "microsoft"; 51 } 52 53 /// <summary> 54 /// Repository names. 55 /// </summary> 56 public class RepositoryName 57 { 58 /// <summary> 59 /// https://github.com/microsoft/winget-cli . 60 /// </summary> 61 public const string WinGetCli = "winget-cli"; 62 63 /// <summary> 64 /// https://github.com/microsoft/microsoft-ui-xaml . 65 /// </summary> 66 public const string UiXaml = "microsoft-ui-xaml"; 67 } 68 } 69 }