Skip to content

Commit

Permalink
feat: Add missing WinUI PackageVersion constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Sep 19, 2023
1 parent 87a7954 commit 2f13210
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Uno.UWP/ApplicationModel/PackageVersion.cs
Expand Up @@ -23,6 +23,16 @@ internal PackageVersion(global::System.Version version)
Revision = (ushort)(version.Revision >= 0 ? version.Revision : 0);
}

#if HAS_UNO_WINUI
public PackageVersion(ushort _Major, ushort _Minor, ushort _Build, ushort _Revision)
{
Major = _Major;
Minor = _Minor;
Build = _Build;
Revision = _Revision;
}
#endif

// NOTE: Equality implementation should be modified if a new field/property is added.

/// <summary>
Expand Down

0 comments on commit 2f13210

Please sign in to comment.