From ee72ea73da7d97bb939ee55e9951ad457328ae7a Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Thu, 28 Dec 2017 12:57:15 -0800 Subject: [PATCH] Add exclusions for NPV for non-ASP.NET assemblies --- NuGetPackageVerifier.json | 45 +++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/NuGetPackageVerifier.json b/NuGetPackageVerifier.json index 9c532a1121..8fe5954dcc 100644 --- a/NuGetPackageVerifier.json +++ b/NuGetPackageVerifier.json @@ -8,17 +8,44 @@ "RazorPageGenerator": {} } }, - "razor-design": { // this is a 'fat' package that contains some assets we don't own - "rules": [ - // Don't run any rules (temporary, tracked by #1887) - ], - "packages": { - "Microsoft.AspNetCore.Razor.Design": {} - } - }, "Default": { // Rules to run for packages not listed in any other set. "rules": [ "DefaultCompositeRule" - ] + ], + "packages": { + "Microsoft.AspNetCore.Razor.Design": { + "exclusions": { + "ASSEMBLY_DESCRIPTION": { + "tools/Microsoft.CodeAnalysis.CSharp.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/Microsoft.CodeAnalysis.dll": "This assembly is not owned by us and does not follow our conventions." + }, + "NEUTRAL_RESOURCES_LANGUAGE": { + "tools/Microsoft.CodeAnalysis.CSharp.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/Microsoft.CodeAnalysis.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/Newtonsoft.Json.dll": "This assembly is not owned by us and does not follow our conventions." + }, + "ASSEMBLY_PRODUCT": { + "tools/Microsoft.CodeAnalysis.CSharp.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/Microsoft.CodeAnalysis.dll": "This assembly is not owned by us and does not follow our conventions." + }, + "SERVICING_ATTRIBUTE": { + "tools/Newtonsoft.Json.dll": "This assembly is not owned by us and does not follow our conventions." + }, + "VERSION_INFORMATIONALVERSION": { + "tools/Newtonsoft.Json.dll": "This assembly is not owned by us and does not follow our conventions." + }, + "WRONG_PUBLICKEYTOKEN": { + "tools/Microsoft.CodeAnalysis.CSharp.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/Microsoft.CodeAnalysis.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/Newtonsoft.Json.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/runtimes/unix/lib/netstandard1.3/System.Text.Encoding.CodePages.dll": "This assembly is not owned by us and does not follow our conventions.", + "tools/runtimes/win/lib/netstandard1.3/System.Text.Encoding.CodePages.dll": "This assembly is not owned by us and does not follow our conventions." + }, + "ASSEMBLY_INFORMATIONAL_VERSION_MISMATCH": { + "tools/Microsoft.CodeAnalysis.CSharp.dll": "This assembly is not owned by us and does not follow our conventions." + } + } + } + } } } \ No newline at end of file