5959 The SDK version of .NET 8.x to install on the build agent to be used for building and
6060 testing. This SDK is always installed on the build agent. The default is 8.0.x.
6161
62- . PARAMETER DotNet6SDKVersion
63- The SDK version of .NET 6.x to install on the build agent to be used for building and
64- testing. This SDK is always installed on the build agent. The default is 6.0.x.
6562#>
6663param (
6764 [string ]$OutputDirectory = $PSScriptRoot ,
6865
6966 [string ]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot )),
7067
71- [string []]$TestFrameworks = @ (' net9.0' , ' net8.0' , ' net6.0 ' , ' net472' , ' net48' ), # targets under test: net8.0, net8.0, netstandard2.1 , netstandard2.0, net462
68+ [string []]$TestFrameworks = @ (' net9.0' , ' net8.0' , ' net472' , ' net48' ), # targets under test: net8.0, net8.0, netstandard2.0, net462
7269
7370 [string []]$OperatingSystems = @ (' windows-latest' , ' ubuntu-latest' ),
7471
7875
7976 [string ]$DotNet9SDKVersion = ' 9.0.x' ,
8077
81- [string ]$DotNet8SDKVersion = ' 8.0.x' ,
82-
83- [string ]$DotNet6SDKVersion = ' 6.0.x'
78+ [string ]$DotNet8SDKVersion = ' 8.0.x'
8479)
8580
8681
@@ -161,8 +156,7 @@ function Write-TestWorkflow(
161156 [string []]$TestPlatforms = @ (' x64' ),
162157 [string []]$OperatingSystems = @ (' windows-latest' , ' ubuntu-latest' , ' macos-latest' ),
163158 [string ]$DotNet9SDKVersion = $DotNet9SDKVersion ,
164- [string ]$DotNet8SDKVersion = $DotNet8SDKVersion ,
165- [string ]$DotNet6SDKVersion = $DotNet6SDKVersion ) {
159+ [string ]$DotNet8SDKVersion = $DotNet8SDKVersion ) {
166160
167161 $dependencies = New-Object System.Collections.Generic.HashSet[string ]
168162 Get-ProjectDependencies $ProjectPath $RelativeRoot $dependencies
@@ -280,12 +274,6 @@ jobs:
280274 - name: Checkout Source Code
281275 uses: actions/checkout@v5
282276
283- - name: Setup .NET 6 SDK
284- uses: actions/setup-dotnet@v5
285- with:
286- dotnet-version: '$DotNet6SDKVersion '
287- if: `$ {{ startswith(matrix.framework, 'net6.') }}
288-
289277 - name: Setup .NET 8 SDK
290278 uses: actions/setup-dotnet@v5
291279 with:
@@ -375,7 +363,7 @@ try {
375363 Pop-Location
376364}
377365
378- # Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net6.0') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion -DotNet6SDKVersion $DotNet6SDKVersion
366+ # Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net6.0') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion
379367
380368# Write-Host $TestProjects
381369
@@ -402,5 +390,5 @@ foreach ($testProject in $TestProjects) {
402390 Write-Host " Frameworks To Test for ${projectName} : $ ( $frameworks -join ' ;' ) " - ForegroundColor Cyan
403391
404392 # Write-Host "Project: $projectName"
405- Write-TestWorkflow - OutputDirectory $OutputDirectory - ProjectPath $testProject - RelativeRoot $RepoRoot - TestFrameworks $frameworks - OperatingSystems $OperatingSystems - TestPlatforms $TestPlatforms - Configurations $Configurations - DotNet8SDKVersion $DotNet8SDKVersion - DotNet6SDKVersion $DotNet6SDKVersion
393+ Write-TestWorkflow - OutputDirectory $OutputDirectory - ProjectPath $testProject - RelativeRoot $RepoRoot - TestFrameworks $frameworks - OperatingSystems $OperatingSystems - TestPlatforms $TestPlatforms - Configurations $Configurations - DotNet8SDKVersion $DotNet8SDKVersion
406394}
0 commit comments