Aspose.Tasks.Examples.CSharp.WorkingWithProjects.WorkingWithProjectProperties.DetermineProjectVersion.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:DetermineProjectVersion
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);  
            
            // Read project from template file
            Project project = new Project(dataDir + "DetermineProjectVersion.mpp");

            // Display project version
            Console.WriteLine("Project Version : " + project.Get(Prj.SaveVersion).ToString());
            Console.WriteLine("Last Saved : " + project.Get(Prj.LastSaved).ToShortDateString());
            // ExEnd:DetermineProjectVersion
        }
    }
DetermineProjectVersion