Skip to content

Commit 88381f2

Browse files
mary-georgiou-sonarsourcesonartech
authored andcommitted
NET-1047 Update nuget install scripts to account for single analyzer dll
1 parent ef12213 commit 88381f2

File tree

4 files changed

+0
-101
lines changed

4 files changed

+0
-101
lines changed

analyzers/packaging/tools-cs/install.ps1

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,6 @@ if ($project.Type -ne "C#") {
4242
$analyzersPath = Split-Path -Path $toolsPath -Parent
4343
$analyzersPath = Join-Path $analyzersPath "analyzers"
4444

45-
$analyzerFilePath = Join-Path $analyzersPath "Google.Protobuf.dll"
46-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
47-
48-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CFG.dll"
49-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
50-
51-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.Core.dll"
52-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
53-
54-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CSharp.Core.dll"
55-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
56-
57-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.ShimLayer.dll"
58-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
59-
6045
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CSharp.dll"
6146
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
6247

analyzers/packaging/tools-cs/uninstall.ps1

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,6 @@ if ($project.Object.AnalyzerReferences -eq $null) {
1515
$analyzersPath = Split-Path -Path $toolsPath -Parent
1616
$analyzersPath = Join-Path $analyzersPath "analyzers"
1717

18-
$analyzerFilePath = Join-Path $analyzersPath "Google.Protobuf.dll"
19-
try {
20-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
21-
}
22-
catch {
23-
}
24-
25-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CFG.dll"
26-
try {
27-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
28-
}
29-
catch {
30-
}
31-
32-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.Core.dll"
33-
try {
34-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
35-
}
36-
catch {
37-
}
38-
39-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CSharp.Core.dll"
40-
try {
41-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
42-
}
43-
catch {
44-
}
45-
46-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.ShimLayer.dll"
47-
try {
48-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
49-
}
50-
catch {
51-
}
52-
5318
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CSharp.dll"
5419
try {
5520
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)

analyzers/packaging/tools-vbnet/install.ps1

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,5 @@ if ($project.Type -ne "VB.NET") {
4242
$analyzersPath = Split-Path -Path $toolsPath -Parent
4343
$analyzersPath = Join-Path $analyzersPath "analyzers"
4444

45-
$analyzerFilePath = Join-Path $analyzersPath "Google.Protobuf.dll"
46-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
47-
48-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CFG.dll"
49-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
50-
51-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.Core.dll"
52-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
53-
54-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.ShimLayer.dll"
55-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
56-
5745
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.VisualBasic.dll"
5846
$project.Object.AnalyzerReferences.Add($analyzerFilePath)
59-
60-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.VisualBasic.Core.dll"
61-
$project.Object.AnalyzerReferences.Add($analyzerFilePath)

analyzers/packaging/tools-vbnet/uninstall.ps1

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,45 +15,9 @@ if ($project.Object.AnalyzerReferences -eq $null) {
1515
$analyzersPath = Split-Path -Path $toolsPath -Parent
1616
$analyzersPath = Join-Path $analyzersPath "analyzers"
1717

18-
$analyzerFilePath = Join-Path $analyzersPath "Google.Protobuf.dll"
19-
try {
20-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
21-
}
22-
catch {
23-
}
24-
25-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.CFG.dll"
26-
try {
27-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
28-
}
29-
catch {
30-
}
31-
32-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.Core.dll"
33-
try {
34-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
35-
}
36-
catch {
37-
}
38-
39-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.ShimLayer.dll"
40-
try {
41-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
42-
}
43-
catch {
44-
}
45-
4618
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.VisualBasic.dll"
4719
try {
4820
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
4921
}
5022
catch {
5123
}
52-
53-
54-
$analyzerFilePath = Join-Path $analyzersPath "SonarAnalyzer.VisualBasic.Core.dll"
55-
try {
56-
$project.Object.AnalyzerReferences.Remove($analyzerFilePath)
57-
}
58-
catch {
59-
}

0 commit comments

Comments
 (0)