"enabled": true,
"continueOnError": true,
"alwaysRun": false,
- "displayName": "Remove files other than DLLs, PDBs and TXT",
+ "displayName": "Remove api-*, ucrtbase*, and files other than DLLs, PDBs and TXT",
"timeoutInMinutes": 0,
"condition": "succeeded()",
"task": {
"scriptName": "",
"arguments": "$(Build.SourcesDirectory)",
"workingFolder": "$(Build.SourcesDirectory)",
- "inlineScript": "param($SrcDir)\n$secDir = Join-Path \"$SrcDir\" \"security\"\n$extList = \".dll\", \".pdb\", \".txt\"\ngci $secDir -Recurse | where { !$_.PSIsContainer } | % {\nif ($extList -inotcontains $_.Extension)\n{\n rm $_.FullName -Force -ErrorAction SilentlyContinue\n Write-Host \"Removed $($_.FullName)\"\n}\n}\n\n",
+ "inlineScript": "param($SrcDir)\n$secDir = Join-Path \"$SrcDir\" \"security\"\n$extList = \".dll\", \".pdb\", \".txt\"\ngci $secDir -Recurse | where { !$_.PSIsContainer } | % {\nif ($extList -inotcontains $_.Extension -or $_.BaseName -like \"api-*\" -or $_.BaseName -like \"ucrtbase*\")\n{\n rm $_.FullName -Force\n Write-Host \"Removed $($_.FullName)\"\n}\n}\n\n",
"failOnStandardError": "true"
}
},
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\dir.props" />
-</Project>
\ No newline at end of file
+</Project>