Exemple #1
0
 /// <summary>
 /// Saves all files that have been modified.
 /// </summary>
 /// <param name="m">The monitor.</param>
 /// <returns>True on success, false on error.</returns>
 public bool Save(IActivityMonitor m)
 {
     if (!_dependencies.IsInitialized)
     {
         throw new InvalidOperationException("Invalid Project.");
     }
     return(_file.Save(m, Solution.FileSystem));
 }
Exemple #2
0
 /// <summary>
 /// Saves all files that have been modified.
 /// </summary>
 /// <param name="m">The monitor.</param>
 /// <returns>True on success, false on error.</returns>
 public bool Save(IActivityMonitor m)
 {
     if (!_dependencies.IsInitialized)
     {
         throw new InvalidOperationException("Invalid Project.");
     }
     return(_primaryFile.Save(m, Solution.FileSystem) &&
            (_centralPackagesFile?.Save(m, Solution.FileSystem) ?? true));
 }