@@ -2,13 +2,15 @@ $PSDefaultParameterValues["*:Force"] = $true
22$PSDefaultParameterValues [" *:Confirm" ] = $false
33
44if (Test-Path ./ lib) {
5- write-warning removing
5+ write-warning " removing ./lib "
66 rm - rf lib
77 rm - rf temp
88 rm - rf third- party
99 rm - rf third- party- licenses
1010}
11- Push-Location " ./project"
11+
12+ $root = Split-Path - Path $PSScriptRoot
13+ Push-Location " $root /project"
1214dotnet publish -- configuration release -- framework net6.0 | Out-String - OutVariable build
1315dotnet test -- framework net6.0 -- verbosity normal | Out-String - OutVariable test
1416Pop-Location
@@ -136,14 +138,14 @@ Remove-Item -Path $xmlpdb -Recurse -ErrorAction Ignore
136138Import-Module ./ dbatools.core.library.psd1
137139
138140<#
139- if ((Get-ChildItem -Path C:\gallery\dbatools.core. library -ErrorAction Ignore)) {
140- $null = Remove-Item C:\gallery\dbatools.core. library -Recurse
141- $null = mkdir C:\gallery\dbatools.core. library
142- $null = robocopy c:\github\dbatools.library C:\gallery\dbatools.core. library /S /XF actions-build.ps1 .markdownlint.json *.psproj* *.git* *.yml *.md dac.ps1 *build*.ps1 /XD .git .github Tests .vscode project temp runtime runtimes replication var opt | Out-String | Out-Null
143- Remove-Item c:\gallery\dbatools.core. library\dac.ps1 -ErrorAction Ignore
144- Remove-Item c:\gallery\dbatools.core. library\dbatools.library.psd1 -ErrorAction Ignore
145- Copy-Item C:\github\dbatools.library\dbatools.core.library.psd1 C:\github\dbatools.core.library
146-
147- Get-ChildItem -Recurse -Path C:\gallery\dbatools.core. library\*.ps*, C:\gallery\dbatools.core. library\dbatools.dll | Set-AuthenticodeSignature -Certificate (Get-ChildItem -Path Cert:\CurrentUser\My\fd0dde81152c4d4868afd88d727e78a9b6881cf4) -TimestampServer http://timestamp.digicert.com -HashAlgorithm SHA256
141+ if ((Get-ChildItem -Path C:\gallery\dbatools.library\core -ErrorAction Ignore)) {
142+ $null = Remove-Item C:\gallery\dbatools.library\core -Recurse
143+ $null = mkdir C:\gallery\dbatools.library\core
144+ $null = robocopy c:\github\dbatools.library C:\gallery\dbatools.library\core /S /XF actions-build.ps1 .markdownlint.json *.psproj* *.git* *.yml *.md dac.ps1 *build*.ps1 /XD .git .github Tests .vscode project temp runtime runtimes replication var opt | Out-String | Out-Null
145+ Remove-Item c:\gallery\dbatools.library\core \dac.ps1 -ErrorAction Ignore
146+ Remove-Item c:\gallery\dbatools.library\core \dbatools.library.psd1 -ErrorAction Ignore
147+ # Copy-Item C:\github\dbatools.library\dbatools.core.library.psd1 C:\github\dbatools.core.library
148+
149+ Get-ChildItem -Recurse -Path C:\gallery\dbatools.library\*.ps*, C:\gallery\dbatools.library\* \dbatools.dll | Set-AuthenticodeSignature -Certificate (Get-ChildItem -Path Cert:\CurrentUser\My\fd0dde81152c4d4868afd88d727e78a9b6881cf4) -TimestampServer http://timestamp.digicert.com -HashAlgorithm SHA256
148150 }
149151#>
0 commit comments