param($installPath, $toolsPath, $package, $project)

if ($project.Type -eq 'Web Site') {
    $projectDir = $project.Properties.Item('FullPath').Value
    $assemblySourceFiles = Join-Path $installPath 'runtimes/win-arm/native/*.*'

    foreach ($assemblySourceFileInfo in Get-Item($assemblySourceFiles)) {
        $assemblyFile = Join-Path $projectDir "bin/arm/$($assemblySourceFileInfo.Name)"
        if (Test-Path $assemblyFile) {
            Remove-Item $assemblyFile -Force
        }
    }
}