@@ -31,6 +31,7 @@ function Invoke-RestoreSolution
31
31
dotnet restore (Join-Path $PSScriptRoot .\PSScriptAnalyzer.sln)
32
32
}
33
33
34
+ Write-Progress " Building ScriptAnalyzer"
34
35
$solutionDir = Split-Path $MyInvocation.InvocationName
35
36
if (-not (Test-Path " $solutionDir /global.json" ))
36
37
{
@@ -63,6 +64,7 @@ if ($Restore.IsPresent)
63
64
if ($build )
64
65
{
65
66
67
+ Write-Progress " Building Engine"
66
68
if (-not (Test-DotNetRestore ((Join-Path $solutionDir Engine))))
67
69
{
68
70
Invoke-RestoreSolution
@@ -76,6 +78,7 @@ if ($build)
76
78
{
77
79
Invoke-RestoreSolution
78
80
}
81
+ Write-Progress " Building for framework $Framework , configuration $Configuration "
79
82
Push-Location Rules\
80
83
dotnet build Rules.csproj -- framework $Framework -- configuration $Configuration
81
84
Pop-Location
@@ -84,23 +87,26 @@ if ($build)
84
87
{
85
88
if (-not (Test-Path $destination ))
86
89
{
87
- New-Item - ItemType Directory $destination - Force
90
+ $null = New-Item - ItemType Directory $destination - Force
88
91
}
89
92
foreach ($file in $itemsToCopy )
90
93
{
91
- Copy-Item - Path $file - Destination (Join-Path $destination (Split-Path $file - Leaf)) - Verbose - Force
94
+ Copy-Item - Path $file - Destination (Join-Path $destination (Split-Path $file - Leaf)) - Force
92
95
}
93
96
}
97
+
98
+
99
+ Write-Progress " Copying files to $destinationDir "
94
100
CopyToDestinationDir $itemsToCopyCommon $destinationDir
95
101
CopyToDestinationDir $itemsToCopyBinaries $destinationDirBinaries
96
102
97
103
# Copy Settings File
98
- Copy-Item - Path " $solutionDir \Engine\Settings" - Destination $destinationDir - Force - Recurse - Verbose
104
+ Copy-Item - Path " $solutionDir \Engine\Settings" - Destination $destinationDir - Force - Recurse
99
105
100
106
# copy newtonsoft dll if net451 framework
101
107
if ($Framework -eq " net451" )
102
108
{
103
- copy-item - path " $solutionDir \Rules\bin\$Configuration \$Framework \Newtonsoft.Json.dll" - Destination $destinationDirBinaries - Verbose
109
+ copy-item - path " $solutionDir \Rules\bin\$Configuration \$Framework \Newtonsoft.Json.dll" - Destination $destinationDirBinaries
104
110
}
105
111
}
106
112
@@ -112,11 +118,12 @@ if ($uninstall)
112
118
{
113
119
if ((Test-Path $pssaModulePath ))
114
120
{
115
- Remove-Item - Recurse $pssaModulePath - Verbose
121
+ Remove-Item - Recurse $pssaModulePath
116
122
}
117
123
}
118
124
119
125
if ($install )
120
126
{
121
- Copy-Item - Recurse - Path " $destinationDir " - Destination " $modulePath \." - Verbose - Force
122
- }
127
+ Write-Progress " Installing to $modulePath "
128
+ Copy-Item - Recurse - Path " $destinationDir " - Destination " $modulePath \." - Force
129
+ }
0 commit comments