コード例 #1
0
 public PackageVerifierIssue(string issueId, string instance, string issue, PackageIssueLevel level)
 {
     Instance = instance;
     IssueId  = issueId;
     Issue    = issue;
     Level    = level;
 }
コード例 #2
0
 public PackageIssue(PackageIssueLevel level, string title, string description, string solution)
 {
     Solution = solution;
     Description = description;
     Title = title;
     Level = level;
 }
コード例 #3
0
 public PackageIssue(PackageIssueLevel level, string title, string description, string solution)
 {
     Solution    = solution;
     Description = description;
     Title       = title;
     Level       = level;
 }
コード例 #4
0
        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");
            }
        }
コード例 #5
0
 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;
 }
コード例 #6
0
        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;
        }
コード例 #7
0
        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;
        }
コード例 #8
0
ファイル: PackageIssue.cs プロジェクト: monoman/NugetCracker
        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;
        }
コード例 #9
0
 public PackageVerifierIssue(string issueId, string issue, PackageIssueLevel level)
     : this(issueId, instance : null, issue : issue, level : level)
 {
 }
コード例 #10
0
 private static PackageVerifierIssue RequiredCore(string issueId, string attributeName, PackageIssueLevel issueLevel)
 {
     return(new PackageVerifierIssue(issueId, string.Format("NuSpec {0} attribute is missing", attributeName), issueLevel));
 }