public void Save(string filePath)
        {
            _autoPackageVersions.RemoveAllChildren();
            foreach (var item in _versionVariables.Values.Where(v => !v.IsReadOnly).OrderBy(v => v.Name))
            {
                item.AddToGroup(_autoPackageVersions);
            }

            _document.Save(filePath, Encoding.UTF8);
        }
        public void Save(string filePath)
        {
            if (_versionsPropGroup == null)
            {
                _versionsPropGroup       = _document.AddPropertyGroup();
                _versionsPropGroup.Label = PackageVersionsLabel;
            }

            _versionsPropGroup.RemoveAllChildren();
            foreach (var item in _versionElements.Values)
            {
                _versionsPropGroup.AppendChild(item);
            }

            _document.Save(filePath, Encoding.UTF8);
        }