SHARE
TWEET

Untitled

a guest Feb 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Path=C:WindowsMicrosoft.NETFramework64v4.0.30319
  2.  
  3. ECHO Trying TFS build...
  4.  
  5. msbuild D:WORKprojectproject.sln /p:Config="Debug" /p:Platform="Any CPU" /flp1:logfile=BuildLogProject.txt
  6.    
  7. Engine engine = new Engine();
  8.      engine.BinPath = @"C:WindowsMicrosoft.NETFramework64v4.0.30319";
  9.      FileLogger logger = new FileLogger();
  10.      logger.Parameters = @"logfile=D:WORKprojectBuildLogProject.txt";
  11.  
  12.      engine.RegisterLogger(logger);
  13.      string projectPath = @"D:WORKprojectproject.sln";
  14.  
  15.           try
  16.           {
  17.                bool success = engine.BuildProjectFile(projectPath);
  18.  
  19.           }
  20.  
  21.           catch (Exception ex)
  22.           {
  23.                 System.Windows.Forms.MessageBox.Show(ex.Message);  
  24.           }
  25.  
  26.           finally
  27.           {
  28.                 engine.UnregisterAllLoggers();
  29.                 engine.UnloadAllProjects();
  30.           }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top