@@ -41,7 +41,7 @@ task Build {
4141}
4242
4343task ThirdPartyNotices {
44- Invoke-Build - File build-tasks .third- party.ps1 - Task " ThirdParty " - settings $settings
44+ Invoke-Build - File build-tasks .third- party.ps1 - settings $settings
4545}
4646
4747task PackGlobalTool {
@@ -103,25 +103,16 @@ task PackManualDownload PackGlobalTool, PackPoweShellModule, {
103103 $thirdParty = Join-Path $settings.bin " ThirdPartyNotices.txt"
104104 $packageVersion = $settings.version
105105
106- $destination = Join-Path $out " SqlDatabase.$packageVersion -net452.zip"
107- $source = Join-Path $settings.bin " SqlDatabase\net452\*"
108- Compress-Archive - Path $source , $lic , $thirdParty - DestinationPath $destination
109-
110106 $destination = Join-Path $out " SqlDatabase.$packageVersion -PowerShell.zip"
111107 $source = Join-Path $settings.artifactsPowerShell " *"
112108 Compress-Archive - Path $source - DestinationPath $destination
113109
114- $destination = Join-Path $out " SqlDatabase.$packageVersion -netcore31.zip"
115- $source = Join-Path $settings.bin " SqlDatabase\netcoreapp3.1\publish\*"
116- Compress-Archive - Path $source , $lic , $thirdParty - DestinationPath $destination
117-
118- $destination = Join-Path $out " SqlDatabase.$packageVersion -net50.zip"
119- $source = Join-Path $settings.bin " SqlDatabase\net5.0\publish\*"
120- Compress-Archive - Path $source , $lic , $thirdParty - DestinationPath $destination
121-
122- $destination = Join-Path $out " SqlDatabase.$packageVersion -net60.zip"
123- $source = Join-Path $settings.bin " SqlDatabase\net6.0\publish\*"
124- Compress-Archive - Path $source , $lic , $thirdParty - DestinationPath $destination
110+ $targets = " net452" , " netcoreapp3.1" , " net5.0" , " net6.0" , " net7.0"
111+ foreach ($target in $targets ) {
112+ $destination = Join-Path $out " SqlDatabase.$packageVersion -$target .zip"
113+ $source = Join-Path $settings.bin " SqlDatabase\$target \*"
114+ Compress-Archive - Path $source , $lic , $thirdParty - DestinationPath $destination
115+ }
125116}
126117
127118task UnitTest {
@@ -130,6 +121,7 @@ task UnitTest {
130121 @ { File = " build-tasks.unit-test.ps1" ; Task = " Test" ; settings = $settings ; targetFramework = " netcoreapp3.1" }
131122 @ { File = " build-tasks.unit-test.ps1" ; Task = " Test" ; settings = $settings ; targetFramework = " net5.0" }
132123 @ { File = " build-tasks.unit-test.ps1" ; Task = " Test" ; settings = $settings ; targetFramework = " net6.0" }
124+ @ { File = " build-tasks.unit-test.ps1" ; Task = " Test" ; settings = $settings ; targetFramework = " net7.0" }
133125 )
134126
135127 Build-Parallel $builds - ShowParameter targetFramework - MaximumBuilds 4
@@ -179,14 +171,14 @@ task PsCoreTest {
179171 # show-powershell-images.ps1
180172 $images = $ (
181173 " mcr.microsoft.com/powershell:6.1.0-ubuntu-18.04"
182- , " mcr.microsoft.com/powershell:6.1.1-alpine-3.8 "
183- , " mcr.microsoft.com/powershell:6.1.2-alpine-3.8 "
184- , " mcr.microsoft.com/powershell:6.1.3-alpine-3.8 "
185- , " mcr.microsoft.com/powershell:6.2.0-alpine-3.8 "
186- , " mcr.microsoft.com/powershell:6.2.1-alpine-3.8 "
187- , " mcr.microsoft.com/powershell:6.2.2-alpine-3.8 "
174+ , " mcr.microsoft.com/powershell:6.1.1-ubuntu-18.04 "
175+ , " mcr.microsoft.com/powershell:6.1.2-ubuntu-18.04 "
176+ , " mcr.microsoft.com/powershell:6.1.3-ubuntu-18.04 "
177+ , " mcr.microsoft.com/powershell:6.2.0-ubuntu-18.04 "
178+ , " mcr.microsoft.com/powershell:6.2.1-ubuntu-18.04 "
179+ , " mcr.microsoft.com/powershell:6.2.2-ubuntu-18.04 "
188180 , " mcr.microsoft.com/powershell:6.2.3-ubuntu-18.04"
189- , " mcr.microsoft.com/powershell:6.2.4-alpine-3.8 "
181+ , " mcr.microsoft.com/powershell:6.2.4-ubuntu-18.04 "
190182 , " mcr.microsoft.com/powershell:7.0.0-ubuntu-18.04"
191183 , " mcr.microsoft.com/powershell:7.0.1-ubuntu-18.04"
192184 , " mcr.microsoft.com/powershell:7.0.2-ubuntu-18.04"
@@ -198,7 +190,8 @@ task PsCoreTest {
198190 , " mcr.microsoft.com/powershell:7.1.4-ubuntu-20.04"
199191 , " mcr.microsoft.com/powershell:7.2.0-ubuntu-20.04"
200192 , " mcr.microsoft.com/powershell:7.2.1-ubuntu-20.04"
201- , " mcr.microsoft.com/powershell:7.3.0-preview.1-ubuntu-20.04" )
193+ , " mcr.microsoft.com/powershell:7.2.2-ubuntu-20.04"
194+ , " mcr.microsoft.com/powershell:7.3-ubuntu-20.04" )
202195
203196 $builds = @ ()
204197 foreach ($image in $images ) {
@@ -220,7 +213,8 @@ task SdkToolTest {
220213 $images = $ (
221214 " sqldatabase/dotnet_pwsh:3.1-sdk"
222215 , " sqldatabase/dotnet_pwsh:5.0-sdk"
223- , " sqldatabase/dotnet_pwsh:6.0-sdk" )
216+ , " sqldatabase/dotnet_pwsh:6.0-sdk"
217+ , " sqldatabase/dotnet_pwsh:7.0-sdk" )
224218
225219 $builds = @ ()
226220 foreach ($image in $images ) {
@@ -240,9 +234,10 @@ task SdkToolTest {
240234
241235task NetRuntimeLinuxTest {
242236 $testCases = $ (
243- @ { targetFramework = " netcore31" ; image = " sqldatabase/dotnet_pwsh:3.1-runtime" }
244- , @ { targetFramework = " net50" ; image = " sqldatabase/dotnet_pwsh:5.0-runtime" }
245- , @ { targetFramework = " net60" ; image = " sqldatabase/dotnet_pwsh:6.0-runtime" }
237+ @ { targetFramework = " netcoreapp3.1" ; image = " sqldatabase/dotnet_pwsh:3.1-runtime" }
238+ , @ { targetFramework = " net5.0" ; image = " sqldatabase/dotnet_pwsh:5.0-runtime" }
239+ , @ { targetFramework = " net6.0" ; image = " sqldatabase/dotnet_pwsh:6.0-runtime" }
240+ , @ { targetFramework = " net7.0" ; image = " sqldatabase/dotnet_pwsh:7.0-runtime" }
246241 )
247242
248243 $builds = @ ()
@@ -265,9 +260,10 @@ task NetRuntimeLinuxTest {
265260task NetRuntimeWindowsTest {
266261 $testCases = $ (
267262 " net452"
268- , " netcore31"
269- , " net50"
270- , " net60"
263+ , " netcoreapp3.1"
264+ , " net5.0"
265+ , " net6.0"
266+ , " net7.0"
271267 )
272268
273269 $builds = @ ()
0 commit comments