Build
De Banane Atomic
Aller à la navigationAller à la recherche
// log dans la console var consoleLogger = new ConsoleLogger(LoggerVerbosity.Normal); // log dans un fichier var fileLogger = new FileLogger() { Parameters = @"logfile=" + @"C:\fichier.log" }; BuildParameters buildParameters = new BuildParameters(); buildParameters.Loggers = new List<Microsoft.Build.Framework.ILogger> { consoleLogger, fileLogger }; // paramètres de build var globalProperties = new Dictionary<string, string>(); globalProperties.Add("Configuration", "Release"); globalProperties.Add("Platform", "Mixed Platforms"); var buildRequest = new BuildRequestData(SolutionPath, globalProperties, null, new string[] { "Build" }, null); var buildResult = BuildManager.DefaultBuildManager.Build(buildParameters, buildRequest); |