Пример #1
0
        void SaveProjectProperties()
        {
            _directoryBuildProps?.Save();
            var assemblyInfo = _metadataControl.AssemblyInfo;

            _ppp.Version         = assemblyInfo.Version.EndsWith(".*") ? _metadata.Version : assemblyInfo.Version;
            _ppp.AssemblyVersion = assemblyInfo.Version.EndsWith(".*") ? _metadata.Version : assemblyInfo.Version;
            _ppp.FileVersion     = assemblyInfo.FileVersion.EndsWith(".*") ? _metadata.Version : assemblyInfo.FileVersion;
            _metadata.SyncToPackageProjectProperties(_ppp);
            var skipProps = _directoryBuildProps?.GetValuedProperties()?.ToArray();

            _project.SavePackageProjectProperties(_ppp, skipProps);
        }
Пример #2
0
 void SavePackageInfo()
 {
     _metadata.SyncToPackageProjectProperties(_ppp);
     _project.SavePackageProjectProperties(_ppp);
 }