Skip to content

Commit e90cee1

Browse files
authored
Add manifest version to WinGetUtilInterop (microsoft#5964)
Adds all current V1 manfiest versions to WinGetUtilInterop.
1 parent 38e072e commit e90cee1

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

src/AppInstallerCommonCore/Public/winget/ManifestCommon.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ namespace AppInstaller::Manifest
5353
// V1.12 manifest version
5454
constexpr std::string_view s_ManifestVersionV1_12 = "1.12.0"sv;
5555

56+
// Any new manifest version must also be added to src\WinGetUtilInterop\Manifest\ManifestVersion.cs.
57+
5658
// The manifest extension for the MS Store
5759
constexpr std::string_view s_MSStoreExtension = "msstore"sv;
5860

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// -----------------------------------------------------------------------------
2+
// <copyright file="ManifestVersion.cs" company="Microsoft Corporation">
3+
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
4+
// </copyright>
5+
// -----------------------------------------------------------------------------
6+
7+
namespace Microsoft.WinGetUtil.Manifest
8+
{
9+
/// <summary>
10+
/// Supported manifest version values.
11+
/// </summary>
12+
public static class ManifestVersion
13+
{
14+
#pragma warning disable SA1310 // Field names should not contain underscore
15+
16+
/// <summary>
17+
/// V1 manifest version for GA.
18+
/// </summary>
19+
public const string ManifestVersionV1 = "1.0.0";
20+
21+
/// <summary>
22+
/// V1.1 manifest version.
23+
/// </summary>
24+
public const string ManifestVersionV1_1 = "1.1.0";
25+
26+
/// <summary>
27+
/// V1.2 manifest version.
28+
/// </summary>
29+
public const string ManifestVersionV1_2 = "1.2.0";
30+
31+
/// <summary>
32+
/// V1.4 manifest version.
33+
/// </summary>
34+
public const string ManifestVersionV1_4 = "1.4.0";
35+
36+
/// <summary>
37+
/// V1.5 manifest version.
38+
/// </summary>
39+
public const string ManifestVersionV1_5 = "1.5.0";
40+
41+
/// <summary>
42+
/// V1.6 manifest version.
43+
/// </summary>
44+
public const string ManifestVersionV1_6 = "1.6.0";
45+
46+
/// <summary>
47+
/// V1.7 manifest version.
48+
/// </summary>
49+
public const string ManifestVersionV1_7 = "1.7.0";
50+
51+
/// <summary>
52+
/// V1.9 manifest version.
53+
/// </summary>
54+
public const string ManifestVersionV1_9 = "1.9.0";
55+
56+
/// <summary>
57+
/// V1.10 manifest version.
58+
/// </summary>
59+
public const string ManifestVersionV1_10 = "1.10.0";
60+
61+
/// <summary>
62+
/// V1.12 manifest version.
63+
/// </summary>
64+
public const string ManifestVersionV1_12 = "1.12.0";
65+
66+
#pragma warning restore SA1310 // Field names should not contain underscore
67+
}
68+
}

0 commit comments

Comments
 (0)