Uninstall.ps1.mustache 968 B

12345678910111213141516171819
  1. #-------------------------------------------------------------------------------------------------------
  2. # Copyright (C) Microsoft. All rights reserved.
  3. # Copyright (c) ChakraCore Project Contributors. All rights reserved.
  4. # Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  5. #-------------------------------------------------------------------------------------------------------
  6. param($installPath, $toolsPath, $package, $project)
  7. if ($project.Type -eq 'Web Site') {
  8. $projectDir = $project.Properties.Item('FullPath').Value
  9. $assemblySourceFiles = Join-Path $installPath 'runtimes/{{{runtimeIdentifier}}}/native/*.*'
  10. foreach ($assemblySourceFileInfo in Get-Item($assemblySourceFiles)) {
  11. $assemblyFile = Join-Path $projectDir "bin/{{{platformArchitecture}}}/$($assemblySourceFileInfo.Name)"
  12. if (Test-Path $assemblyFile) {
  13. Remove-Item $assemblyFile -Force
  14. }
  15. }
  16. }