From 393129dc4b45c0c5e22baee61532b7faa7895f03 Mon Sep 17 00:00:00 2001 From: Adonais Romero González Date: Mon, 13 Nov 2023 13:52:08 -0800 Subject: Add more InfVerif exceptions & clear exclusions (#1052) --- Build-Sample.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Build-Sample.ps1') diff --git a/Build-Sample.ps1 b/Build-Sample.ps1 index 67432f92..27f1b6bb 100644 --- a/Build-Sample.ps1 +++ b/Build-Sample.ps1 @@ -139,7 +139,15 @@ $OutLogFilePath = "$LogFilesDirectory\$SampleName.$Configuration.$Platform.out" Write-Verbose "Building Sample: $SampleName; Configuration: $Configuration; Platform: $Platform {" -msbuild $solutionFile -clp:Verbosity=m -t:clean,build -property:Configuration=$Configuration -property:Platform=$Platform -p:TargetVersion=Windows10 -p:InfVerif_AdditionalOptions="/samples /msft /sw1205 /sw1324 /sw1420 /sw1421 /sw2086" -p:SignToolWS=/fdws -p:DriverCFlagAddOn=/wd4996 -flp1:errorsonly`;logfile=$errorLogFilePath -flp2:WarningsOnly`;logfile=$warnLogFilePath -noLogo > $OutLogFilePath +# Exclude certain InfVerif exceptions to allow samples to build and detect other errors. +# error 1205: Section [xxx] referenced from DelFiles and CopyFiles directive - network\trans +# error 1144: Device software with SoftwareType 1 may not execute on all product types - general\dchu\osrfx2_dchu_extension_tight +# error 1233: Missing directive CatalogFile required for digital signature - storage\class\disk +# error 2083: Section [xxx] not referenced or used - network\trans, storage\msdsm +# error 2084: Service binary 'xxx' should reference a CopyFiles destination file - network\trans, wpd\wpdservicesampledriver +# errors 1324, 1420, 1421 will be excluded in main branch only until the fixes are merged. +# error 2086 will be excluded until the WDK used in GitHub is updated. +msbuild $solutionFile -clp:Verbosity=m -t:clean,build -property:Configuration=$Configuration -property:Platform=$Platform -p:TargetVersion=Windows10 -p:InfVerif_AdditionalOptions="/samples /msft /sw1144 /sw1199 /sw1205 /sw1233 /sw1324 /sw1420 /sw1421 /sw2083 /sw2084 /sw2086" -p:SignToolWS=/fdws -p:DriverCFlagAddOn=/wd4996 -warnaserror -flp1:errorsonly`;logfile=$errorLogFilePath -flp2:WarningsOnly`;logfile=$warnLogFilePath -noLogo > $OutLogFilePath if ($env:WDS_WipeOutputs -ne $null) { Write-Verbose ("WipeOutputs: "+$Directory+" "+(((Get-Volume ($DriveLetter=(Get-Item ".").PSDrive.Name)).SizeRemaining/1GB))) -- cgit v1.3.1