Beispiel #1
0
 public Task EvaluateAsync()
 {
     mainProjectInstance = new MSBuildProjectInstance(this);
     return(mainProjectInstance.EvaluateAsync().ContinueWith(t => {
         conditionedProperties = mainProjectInstance.GetConditionedProperties();
     }));
 }
Beispiel #2
0
 public void Evaluate()
 {
     if (mainProjectInstance != null)
     {
         mainProjectInstance.Dispose();
     }
     mainProjectInstance = new MSBuildProjectInstance(this);
     mainProjectInstance.Evaluate();
     conditionedProperties = mainProjectInstance.GetConditionedProperties();
 }
Beispiel #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();
 }
Beispiel #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 ();
		}
Beispiel #9
0
		public void Evaluate ()
		{
			mainProjectInstance = new MSBuildProjectInstance (this);
			mainProjectInstance.Evaluate ();
			conditionedProperties = mainProjectInstance.GetConditionedProperties ();
		}