|
6 | 6 | [string]$Configuration = "Debug"
|
7 | 7 | )
|
8 | 8 |
|
| 9 | +# todo remove aliases |
| 10 | +# todo make each project have its own build script |
| 11 | + |
9 | 12 | $resourceScript = Join-Path $BuildRoot "New-StronglyTypedCsFileForResx.ps1"
|
10 | 13 | $outPath = "$BuildRoot/out"
|
11 | 14 | $modulePath = "$outPath/PSScriptAnalyzer"
|
@@ -60,7 +63,6 @@ function Get-BuildTaskParams($project) {
|
60 | 63 | $d = $($Task.Data)
|
61 | 64 | foreach ($frmwrk in $d.Frameworks.Keys) {
|
62 | 65 | foreach ($config in $d.Frameworks[$frmwrk].Configuration) {
|
63 |
| - Write-Verbose -message "$config $framework" -Verbose:$true |
64 | 66 | dotnet build --framework $frmwrk --configuration $config
|
65 | 67 | }
|
66 | 68 | }
|
@@ -163,7 +165,7 @@ task createModule {
|
163 | 165 | $destinationDirBinaries = $destinationDir
|
164 | 166 |
|
165 | 167 | foreach ($Framework in $buildData.Frameworks.Keys) {
|
166 |
| - foreach ($Configuration in $buildData.Frameworks[$Framework]) { |
| 168 | + foreach ($Configuration in $buildData.Frameworks[$Framework].Configuration) { |
167 | 169 | $itemsToCopyBinaries = @("$solutionDir\Engine\bin\$Configuration\$Framework\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll",
|
168 | 170 | "$solutionDir\Rules\bin\$Configuration\$Framework\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll")
|
169 | 171 |
|
@@ -226,9 +228,9 @@ task cleanDocs -if (Test-Path $outputDocsPath) {
|
226 | 228 | }
|
227 | 229 |
|
228 | 230 | task newSession {
|
229 |
| - Start-Process "powershell" -ArgumentList @('-noexit', '-command "import-module c:\users\kabawany\source\repos\psscriptanalyzer\out\psscriptanalyzer"') |
| 231 | + Start-Process "powershell" -ArgumentList @('-noexit', "-command import-module $BuildRoot\out\psscriptanalyzer -verbose") |
230 | 232 | }
|
231 | 233 |
|
232 | 234 | # TODO fix building psv3
|
233 | 235 | task release cleanModule, clean, build, createModule, buildDocs
|
234 |
| -task . build, newSession |
| 236 | +task . build, createModule, newSession |
0 commit comments