Example #1
0
 public Task EvaluateAsync()
 {
     mainProjectInstance = new MSBuildProjectInstance(this);
     return(mainProjectInstance.EvaluateAsync().ContinueWith(t => {
         conditionedProperties = mainProjectInstance.GetConditionedProperties();
     }));
 }
Example #2
0
 public void Evaluate()
 {
     if (mainProjectInstance != null)
     {
         mainProjectInstance.Dispose();
     }
     mainProjectInstance = new MSBuildProjectInstance(this);
     mainProjectInstance.Evaluate();
     conditionedProperties = mainProjectInstance.GetConditionedProperties();
 }
Example #3
0
 public MSBuildProject()
 {
     ParentProject        = this;
     hadXmlDeclaration    = true;
     mainProjectInstance  = new MSBuildProjectInstance(this);
     UseMSBuildEngine     = true;
     IsNewProject         = true;
     initialWhitespace    = format.NewLine;
     StartInnerWhitespace = format.NewLine;
     AddNewPropertyGroup(false);
     EnableChangeTracking();
 }
Example #4
0
 void DisposeMainInstance()
 {
     if (nativeProjectInfo != null)
     {
         if (mainProjectInstance != null)
         {
             mainProjectInstance.Dispose();
         }
         nativeProjectInfo.Engine.UnloadProject(nativeProjectInfo.Project);
         if (engineManagerIsLocal)
         {
             nativeProjectInfo.Engine.Dispose();
         }
         nativeProjectInfo   = null;
         mainProjectInstance = null;
     }
 }
		public Task EvaluateAsync ()
		{
			if (mainProjectInstance != null)
				mainProjectInstance.Dispose ();
			mainProjectInstance = new MSBuildProjectInstance (this);
			return mainProjectInstance.EvaluateAsync ().ContinueWith (t => {
				conditionedProperties = mainProjectInstance.GetConditionedProperties ();
			});
		}
		public void Evaluate ()
		{
			if (mainProjectInstance != null)
				mainProjectInstance.Dispose ();
			mainProjectInstance = new MSBuildProjectInstance (this);
			mainProjectInstance.Evaluate ();
			conditionedProperties = mainProjectInstance.GetConditionedProperties ();
		}
		void DisposeMainInstance ()
		{
			if (nativeProjectInfo != null) {
				if (mainProjectInstance != null)
					mainProjectInstance.Dispose ();
				nativeProjectInfo.Engine.UnloadProject (nativeProjectInfo.Project);
				if (engineManagerIsLocal)
					nativeProjectInfo.Engine.Dispose ();
				nativeProjectInfo = null;
				mainProjectInstance = null;
			}
		}
		public MSBuildProject ()
		{
			ParentProject = this;
			hadXmlDeclaration = true;
			mainProjectInstance = new MSBuildProjectInstance (this);
			UseMSBuildEngine = true;
			IsNewProject = true;
			initialWhitespace = format.NewLine;
			StartInnerWhitespace = format.NewLine;
			AddNewPropertyGroup (false);
			EnableChangeTracking ();
		}
Example #9
0
		public void Evaluate ()
		{
			mainProjectInstance = new MSBuildProjectInstance (this);
			mainProjectInstance.Evaluate ();
			conditionedProperties = mainProjectInstance.GetConditionedProperties ();
		}