diff --git a/src/Resizetizer/src/GeneratePackageAppxManifest.cs b/src/Resizetizer/src/GeneratePackageAppxManifest.cs index 897aefd3..8f536ed9 100644 --- a/src/Resizetizer/src/GeneratePackageAppxManifest.cs +++ b/src/Resizetizer/src/GeneratePackageAppxManifest.cs @@ -147,18 +147,17 @@ void UpdateManifest(XDocument appx) } // - var xDisplayName = xmlns + "DisplayName"; - var xDisplayNameElem = properties.Element(xDisplayName); - + var xdisplayname = xmlns + "DisplayName"; if (!string.IsNullOrEmpty(ApplicationTitle)) { - if (xDisplayNameElem == null || string.IsNullOrEmpty(xDisplayNameElem.Value) || xDisplayNameElem.Value == DefaultPlaceholder) + var xelem = properties.Element(xdisplayname); + if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == DefaultPlaceholder) { - properties.SetElementValue(xDisplayName, ApplicationTitle); + properties.SetElementValue(xdisplayname, ApplicationTitle); } } - DisplayName = properties.Element(xDisplayName).Value; + DisplayName = properties.Element(xdisplayname).Value; // if (appIconInfo != null)