Example #1
0
        public static IIssueProvider MsBuildIssuesFromContent(
            this ICakeContext context,
            string logFileContent,
            BaseMsBuildLogFileFormat format)
        {
            context.NotNull(nameof(context));
            logFileContent.NotNullOrWhiteSpace(nameof(logFileContent));
            format.NotNull(nameof(format));

            return(context.MsBuildIssues(new MsBuildIssuesSettings(logFileContent.ToByteArray(), format)));
        }
Example #2
0
        public static IIssueProvider MsBuildIssuesFromFilePath(
            this ICakeContext context,
            FilePath logFilePath,
            BaseMsBuildLogFileFormat format)
        {
            context.NotNull(nameof(context));
            logFilePath.NotNull(nameof(logFilePath));
            format.NotNull(nameof(format));

            return(context.MsBuildIssues(new MsBuildIssuesSettings(logFilePath, format)));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MsBuildIssuesSettings"/> class
 /// for a log file content in memory.
 /// </summary>
 /// <param name="logFileContent">Content of the MSBuild log file.
 /// The log file needs to be in the format as defined by the <paramref name="format"/> parameter.</param>
 /// <param name="format">Format of the provided MSBuild log file.</param>
 public MsBuildIssuesSettings(byte[] logFileContent, BaseMsBuildLogFileFormat format)
     : base(logFileContent, format)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MsBuildIssuesSettings"/> class
 /// for reading a log file on disk.
 /// </summary>
 /// <param name="logFilePath">Path to the MSBuild log file.
 /// The log file needs to be in the format as defined by the <paramref name="format"/> parameter.</param>
 /// <param name="format">Format of the provided MSBuild log file.</param>
 public MsBuildIssuesSettings(FilePath logFilePath, BaseMsBuildLogFileFormat format)
     : base(logFilePath, format)
 {
 }