public void Dispose()
 {
     if (engine != null)
     {
         if (builder != null)
         {
             engine.UnloadProject(builder);
         }
         MSBuildProjectService.ReleaseProjectBuilder(engine);
         GC.SuppressFinalize(this);
         engine  = null;
         builder = null;
     }
 }
Exemple #2
0
		public void Dispose ()
		{
			if (!MSBuildProjectService.ShutDown && engine != null) {
				try {
					if (builder != null)
						engine.UnloadProject (builder);
					MSBuildProjectService.ReleaseProjectBuilder (engine);
				} catch {
					// Ignore
				}
				GC.SuppressFinalize (this);
				engine = null;
				builder = null;
			}
		}