コード例 #1
0
 public IEnumerable<PackageIssue> Validate(IPackage package)
 {
     var commandLineRules = new IPackageRule[] { new DefaultManifestValuesRule() };
     return DefaultPackageRuleSet.Rules
                                 .Concat(commandLineRules)
                                 .SelectMany(p => p.Validate(package));
 }
コード例 #2
0
        public IEnumerable <PackageIssue> Validate(IPackage package)
        {
            var commandLineRules = new IPackageRule[] { new DefaultManifestValuesRule() };

            return(DefaultPackageRuleSet.Rules
                   .Concat(commandLineRules)
                   .SelectMany(p => p.Validate(package)));
        }
コード例 #3
0
 static DefaultPackageRuleSet()
 {
     IPackageRule[] list = new IPackageRule[] { new InvalidFrameworkFolderRule(), new MisplacedAssemblyRule(), new MisplacedScriptFileRule(), new MisplacedTransformFileRule(), new MissingSummaryRule(), new InitScriptNotUnderToolsRule(), new WinRTNameIsObsoleteRule() };
     _rules = new ReadOnlyCollection <IPackageRule>(list);
 }