Esempio n. 1
0
 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());
     }
 }
Esempio n. 2
0
        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());
        }
Esempio n. 3
0
        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());
        }