protected internal static void CompileProjectAndTrace(ProjectAnalyzer analyzer, StringWriter log) { log.GetStringBuilder().Clear(); if (analyzer.Compile() == null) { Trace.Error($"Could not compile project at {analyzer.ProjectFilePath}"); Trace.Warning(log.ToString()); } }
public void CompilesProject(string projectFile) { // Given StringBuilder log = new StringBuilder(); ProjectAnalyzer analyzer = GetProjectAnalyzer(projectFile, log); // When ProjectInstance projectInstance = analyzer.Compile(); // Then projectInstance.ShouldNotBeNull(log.ToString()); }
public void CompilesProject(string projectFile) { // Given StringWriter log = new StringWriter(); ProjectAnalyzer analyzer = GetProjectAnalyzer(projectFile, log); // Uncomment to generate a binary log if something isn't working //.WithBinaryLog(Path.Combine(@"E:\Temp\", Path.ChangeExtension(Path.GetFileName(projectFile), ".binlog"))); // When ProjectInstance projectInstance = analyzer.Compile(); // Then projectInstance.ShouldNotBeNull(log.ToString()); }