Remove api-* and ucrtbase*.
authorRavi Eda <raeda@microsoft.com>
Thu, 22 Jun 2017 11:38:33 +0000 (06:38 -0500)
committerRavi Eda <raeda@microsoft.com>
Thu, 22 Jun 2017 11:38:33 +0000 (06:38 -0500)
Commit migrated from https://github.com/dotnet/core-setup/commit/f82494712d2a66eff9d6eff5a1bbf683096e1455

src/installer/buildpipeline/security/DotNet-Core-Setup-Security-Windows.json
src/installer/buildpipeline/security/dir.props
src/installer/buildpipeline/security/syncAzure.targets

index 278f62f..ccf8971 100644 (file)
       "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"
       }
     },
index 9024fa7..28bd945 100644 (file)
@@ -1,4 +1,4 @@
 <?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>
index 0bdd148..a170c33 100644 (file)
@@ -26,4 +26,4 @@
                         BlobNamePrefix="$(BlobName)"
                         DownloadDirectory="$(DownloadDirectory)" />
   </Target>
-</Project>
\ No newline at end of file
+</Project>