Ghost1372

everything can be handy

PackageHelper

GetCurrentPackageName

1
2
3
var packageName = PackageHelper.GetCurrentPackageName();

//return: 6bf3ff99-cad2-4593-95c3-a2b41f92b4f3_1.0.0.0_x86__d945pcw0g0yx4

GetCurrentPackageName Works only in Packaged mode, in UnPackaged mode this will Returns the null value.

IsPackaged

1
2
3
var isPackagedMode = PackageHelper.IsPackaged;

//return: true/false

GetPackageDetails

1
var packageDetails = PackageHelper.GetPackageDetails();

GetPackageVersion

1
2
3
4
5
6
var packageVersion = PackageHelper.GetPackageVersion();
packageVersion.Major.ToString();
packageVersion.Minor.ToString();
packageVersion.Build.ToString();
packageVersion.Revision.ToString();
//return: 1.0.0.0
0%