CCNet.Build.Common.ProjectDocument.Save C# (CSharp) Method

Save() public method

Saves project file to disk.
public Save ( ) : void
return void
		public void Save()
		{
			if (String.IsNullOrEmpty(m_projectFile))
				throw new InvalidOperationException("Project is not associated with local file.");

			m_document.Save(m_projectFile);
		}

Usage Example

		public void Adjust()
		{
			Console.Write("Loading project... ");
			var project = new ProjectDocument(Args.ProjectFile);
			Console.WriteLine("OK");

			ConvertProjectReferences(project);
			UpdateReferenceVersions(project);
			SetupRelatedProjects(project);

			Console.Write("Saving project... ");
			project.Save();
			Console.WriteLine("OK");
		}
All Usage Examples Of CCNet.Build.Common.ProjectDocument::Save