@@ -79,19 +79,19 @@ $parms = @{
79
79
}
80
80
81
81
$parms.Name = " Microsoft.Data.SqlClient"
82
- $parms.RequiredVersion = " 5.1.1 "
82
+ $parms.RequiredVersion = " 5.1.4 "
83
83
$null = Install-Package @parms
84
84
85
85
$parms.Name = " Microsoft.Data.SqlClient.SNI.runtime"
86
- $parms.RequiredVersion = " 5.1 .0"
86
+ $parms.RequiredVersion = " 5.2 .0"
87
87
$null = Install-Package @parms
88
88
89
89
$parms.Name = " Microsoft.Identity.Client"
90
90
$parms.RequiredVersion = " 4.53.0"
91
91
$null = Install-Package @parms
92
92
93
93
Copy-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/
95
95
96
96
97
97
Copy-Item " ./var/misc/core/*.dll" - Destination ./ lib/
@@ -106,17 +106,27 @@ Get-ChildItem -Directory -Path .\lib\ | Where-Object Name -notin 'x64', 'x86' |
106
106
if ((Get-ChildItem - Path C:\gallery\dbatools.library - ErrorAction Ignore)) {
107
107
$null = Remove-Item C:\gallery\dbatools.library - Recurse
108
108
$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
109
113
$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
110
114
111
115
Remove-Item c:\gallery\dbatools.library\dac.ps1 - ErrorAction Ignore
112
116
Remove-Item c:\gallery\dbatools.library\dbatools.core.library.psd1 - ErrorAction Ignore
113
117
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
114
122
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
116
125
}
117
126
118
127
Import-Module C:\gallery\dbatools.library\dbatools.library.psd1 - Force
119
128
Pop-Location
129
+ # gotta copy the integration dlls
120
130
<#
121
131
already there
122
132
-rwxrwxrwx ctrlb ctrlb 10/08/2022 03:08 12132752 Microsoft.Data.Tools.Schema.Sql.dll
0 commit comments