@@ -79,19 +79,19 @@ $parms = @{
7979}
8080
8181$parms.Name = " Microsoft.Data.SqlClient"
82- $parms.RequiredVersion = " 5.1.1 "
82+ $parms.RequiredVersion = " 5.1.4 "
8383$null = Install-Package @parms
8484
8585$parms.Name = " Microsoft.Data.SqlClient.SNI.runtime"
86- $parms.RequiredVersion = " 5.1 .0"
86+ $parms.RequiredVersion = " 5.2 .0"
8787$null = Install-Package @parms
8888
8989$parms.Name = " Microsoft.Identity.Client"
9090$parms.RequiredVersion = " 4.53.0"
9191$null = Install-Package @parms
9292
9393Copy-Item " $tempdir \nuget\Microsoft.Identity.Client.4.53.0\lib\net461\Microsoft.Identity.Client.dll" - Destination lib/
94- Copy-Item " $tempdir \nuget\Microsoft.Data.SqlClient.SNI.runtime.5.1 .0\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll" - Destination lib/
94+ Copy-Item " $tempdir \nuget\Microsoft.Data.SqlClient.SNI.runtime.5.2 .0\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll" - Destination lib/
9595
9696
9797Copy-Item " ./var/misc/core/*.dll" - Destination ./ lib/
@@ -106,17 +106,27 @@ Get-ChildItem -Directory -Path .\lib\ | Where-Object Name -notin 'x64', 'x86' |
106106if ((Get-ChildItem - Path C:\gallery\dbatools.library - ErrorAction Ignore)) {
107107 $null = Remove-Item C:\gallery\dbatools.library - Recurse
108108 $null = mkdir C:\gallery\dbatools.library
109+ $null = mkdir C:\gallery\dbatools.library\desktop
110+ $null = mkdir C:\gallery\dbatools.library\desktop\lib
111+ # $null = mkdir C:\gallery\dbatools.library\desktop\x86
112+ # $null = mkdir C:\gallery\dbatools.library\desktop\x64
109113 $null = robocopy c:\github\dbatools.library C:\gallery\dbatools.library / S / XF actions- build.ps1 .markdownlint.json * .psproj* * .git* * .yml * .md dac.ps1 build* .ps1 dbatools- core* .* / XD .git .github Tests .vscode project temp runtime runtimes replication var opt | Out-String | Out-Null
110114
111115 Remove-Item c:\gallery\dbatools.library\dac.ps1 - ErrorAction Ignore
112116 Remove-Item c:\gallery\dbatools.library\dbatools.core.library.psd1 - ErrorAction Ignore
113117 Copy-Item C:\github\dbatools.library\dbatools.library.psd1 C:\gallery\dbatools.library
118+ Move-Item C:\github\dbatools.library\lib\x86 C:\gallery\dbatools.library\desktop\lib
119+ Move-Item C:\github\dbatools.library\lib\x64 C:\gallery\dbatools.library\desktop\lib
120+ Move-Item C:\github\dbatools.library\lib\* C:\gallery\dbatools.library\desktop\*
121+ Remove-Item C:\gallery\dbatools.library\lib - Recurse
114122
115- $null = 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
123+
124+ # $null = Get-ChildItem -Recurse -Path C:\gallery\dbatools.library\*.ps*, C:\gallery\dbatools.library\dbatools.dll | Set-AuthenticodeSignature -Certificate (Get-ChildItem -Path Cert:\CurrentUser\My\1c735258e8b34ce113ad86a501235c1f2e263106) -TimestampServer http://timestamp.digicert.com -HashAlgorithm SHA256
116125}
117126
118127Import-Module C:\gallery\dbatools.library\dbatools.library.psd1 - Force
119128Pop-Location
129+ # gotta copy the integration dlls
120130<#
121131already there
122132-rwxrwxrwx ctrlb ctrlb 10/08/2022 03:08 12132752 Microsoft.Data.Tools.Schema.Sql.dll
0 commit comments