@@ -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
@@ -221,7 +213,8 @@ task SdkToolTest {
221213 $images = $ (
222214 " sqldatabase/dotnet_pwsh:3.1-sdk"
223215 , " sqldatabase/dotnet_pwsh:5.0-sdk"
224- , " sqldatabase/dotnet_pwsh:6.0-sdk" )
216+ , " sqldatabase/dotnet_pwsh:6.0-sdk"
217+ , " sqldatabase/dotnet_pwsh:7.0-sdk" )
225218
226219 $builds = @ ()
227220 foreach ($image in $images ) {
@@ -241,9 +234,10 @@ task SdkToolTest {
241234
242235task NetRuntimeLinuxTest {
243236 $testCases = $ (
244- @ { targetFramework = " netcore31" ; image = " sqldatabase/dotnet_pwsh:3.1-runtime" }
245- , @ { targetFramework = " net50" ; image = " sqldatabase/dotnet_pwsh:5.0-runtime" }
246- , @ { 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" }
247241 )
248242
249243 $builds = @ ()
@@ -266,9 +260,10 @@ task NetRuntimeLinuxTest {
266260task NetRuntimeWindowsTest {
267261 $testCases = $ (
268262 " net452"
269- , " netcore31"
270- , " net50"
271- , " net60"
263+ , " netcoreapp3.1"
264+ , " net5.0"
265+ , " net6.0"
266+ , " net7.0"
272267 )
273268
274269 $builds = @ ()
0 commit comments