diff --git a/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/install.ps1 b/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/install.ps1 index 6598bf8bec8e4b8f5ce65b21189d84607442392e..9e3fbbf48f5043e2da94fd1a6f889d96c4e9bba6 100644 --- a/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/install.ps1 +++ b/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/install.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) if (Test-Path $analyzersPath) { # Install the language agnostic analyzers. - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { diff --git a/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/uninstall.ps1 b/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/uninstall.ps1 index 69445d0b0e6c0434578236085e339be34acf9e09..7d9c8cc1dc54c650d0232a45501b594820622945 100644 --- a/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/uninstall.ps1 +++ b/src/Samples/CSharp/Analyzers/CSharpAnalyzers/CSharpAnalyzers/tools/uninstall.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) # Uninstall the language agnostic analyzers. if (Test-Path $analyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { diff --git a/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/install.ps1 b/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/install.ps1 index 6598bf8bec8e4b8f5ce65b21189d84607442392e..9e3fbbf48f5043e2da94fd1a6f889d96c4e9bba6 100644 --- a/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/install.ps1 +++ b/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/install.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) if (Test-Path $analyzersPath) { # Install the language agnostic analyzers. - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { diff --git a/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/uninstall.ps1 b/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/uninstall.ps1 index 69445d0b0e6c0434578236085e339be34acf9e09..7d9c8cc1dc54c650d0232a45501b594820622945 100644 --- a/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/uninstall.ps1 +++ b/src/Samples/VisualBasic/Analyzers/BasicAnalyzers/BasicAnalyzers/tools/uninstall.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) # Uninstall the language agnostic analyzers. if (Test-Path $analyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { diff --git a/src/Setup/Templates/CSharp/Diagnostic/Analyzer/install.ps1 b/src/Setup/Templates/CSharp/Diagnostic/Analyzer/install.ps1 index 6598bf8bec8e4b8f5ce65b21189d84607442392e..9e3fbbf48f5043e2da94fd1a6f889d96c4e9bba6 100644 --- a/src/Setup/Templates/CSharp/Diagnostic/Analyzer/install.ps1 +++ b/src/Setup/Templates/CSharp/Diagnostic/Analyzer/install.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) if (Test-Path $analyzersPath) { # Install the language agnostic analyzers. - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { diff --git a/src/Setup/Templates/CSharp/Diagnostic/Analyzer/uninstall.ps1 b/src/Setup/Templates/CSharp/Diagnostic/Analyzer/uninstall.ps1 index 69445d0b0e6c0434578236085e339be34acf9e09..7d9c8cc1dc54c650d0232a45501b594820622945 100644 --- a/src/Setup/Templates/CSharp/Diagnostic/Analyzer/uninstall.ps1 +++ b/src/Setup/Templates/CSharp/Diagnostic/Analyzer/uninstall.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) # Uninstall the language agnostic analyzers. if (Test-Path $analyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { diff --git a/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/install.ps1 b/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/install.ps1 index 6598bf8bec8e4b8f5ce65b21189d84607442392e..9e3fbbf48f5043e2da94fd1a6f889d96c4e9bba6 100644 --- a/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/install.ps1 +++ b/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/install.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) if (Test-Path $analyzersPath) { # Install the language agnostic analyzers. - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { diff --git a/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/uninstall.ps1 b/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/uninstall.ps1 index 69445d0b0e6c0434578236085e339be34acf9e09..7d9c8cc1dc54c650d0232a45501b594820622945 100644 --- a/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/uninstall.ps1 +++ b/src/Setup/Templates/VisualBasic/Diagnostic/Analyzer/tools/uninstall.ps1 @@ -16,7 +16,7 @@ foreach($analyzersPath in $analyzersPaths) # Uninstall the language agnostic analyzers. if (Test-Path $analyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$analyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) { @@ -47,7 +47,7 @@ foreach($analyzersPath in $analyzersPaths) $languageAnalyzersPath = join-path $analyzersPath $languageFolder if (Test-Path $languageAnalyzersPath) { - foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) + foreach ($analyzerFilePath in Get-ChildItem -Path "$languageAnalyzersPath\*.dll" -Exclude *.resources.dll) { if($project.Object.AnalyzerReferences) {