public PackageVerifierIssue(string issueId, string instance, string issue, PackageIssueLevel level) { Instance = instance; IssueId = issueId; Issue = issue; Level = level; }
public PackageIssue(PackageIssueLevel level, string title, string description, string solution) { Solution = solution; Description = description; Title = title; Level = level; }
public static global::NuGet.PackageIssueLevel ToCommandLine(this PackageIssueLevel level) { switch (level) { case PackageIssueLevel.Error: return(global::NuGet.PackageIssueLevel.Error); case PackageIssueLevel.Warning: return(global::NuGet.PackageIssueLevel.Warning); default: throw new ArgumentOutOfRangeException("level"); } }
public PackageIssue(string title, string description, string solution, PackageIssueLevel level) { if (string.IsNullOrEmpty(title)) { throw new ArgumentException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "title"); } if (string.IsNullOrEmpty(description)) { throw new ArgumentException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "description"); } this.Title = title; this.Description = description; this.Solution = solution; this.Level = level; }
public PackageIssue(PackageIssueLevel type, string title, string description, string solution) { if (string.IsNullOrEmpty(title)) { throw new ArgumentException("Argument is null or empty.", "title"); } if (string.IsNullOrEmpty(description)) { throw new ArgumentException("Argument is null or empty.", "description"); } Level = type; Title = title; Description = description; Solution = solution; }
public PackageIssue(string title, string description, string solution, PackageIssueLevel level) { if (String.IsNullOrEmpty(title)) { throw new ArgumentException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "title"); } if (String.IsNullOrEmpty(description)) { throw new ArgumentException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "description"); } Title = title; Description = description; Solution = solution; Level = level; }
public PackageVerifierIssue(string issueId, string issue, PackageIssueLevel level) : this(issueId, instance : null, issue : issue, level : level) { }
private static PackageVerifierIssue RequiredCore(string issueId, string attributeName, PackageIssueLevel issueLevel) { return(new PackageVerifierIssue(issueId, string.Format("NuSpec {0} attribute is missing", attributeName), issueLevel)); }