@@ -24,14 +24,13 @@ $script:PsesCommonProps = [xml](Get-Content -Raw "$PSScriptRoot/PowerShellEditor
2424$script :IsPreview = [bool ]($script :PsesCommonProps.Project.PropertyGroup.VersionSuffix )
2525
2626$script :NetRuntime = @ {
27- PS62 = ' netcoreapp2.1'
2827 PS7 = ' netcoreapp3.1'
29- PS71 = ' net5 .0'
28+ PS72 = ' net6 .0'
3029 Desktop = ' net461'
3130 Standard = ' netstandard2.0'
3231}
3332
34- $script :HostCoreOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.PS62 ) /publish"
33+ $script :HostCoreOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.PS7 ) /publish"
3534$script :HostDeskOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.Desktop ) /publish"
3635$script :PsesOutput = " $PSScriptRoot /src/PowerShellEditorServices/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
3736$script :VSCodeOutput = " $PSScriptRoot /src/PowerShellEditorServices.VSCode/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
@@ -103,7 +102,7 @@ function Install-Dotnet {
103102 Write-Host ' .NET installation complete' - ForegroundColor Green
104103}
105104
106- task SetupDotNet - Before Clean , Build, TestServerWinPS, TestServerPS7, TestServerPS71 , TestE2E {
105+ task SetupDotNet - Before Clean , Build, TestServerWinPS, TestServerPS7, TestServerPS72 , TestE2E {
107106
108107 $dotnetPath = " $PSScriptRoot /.dotnet"
109108 $dotnetExePath = if ($script :IsUnix ) { " $dotnetPath /dotnet" } else { " $dotnetPath /dotnet.exe" }
@@ -237,7 +236,7 @@ task SetupHelpForTests {
237236
238237task Build BinClean, {
239238 exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f $script :NetRuntime.Standard }
240- exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS62 }
239+ exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS7 }
241240 if (-not $script :IsUnix )
242241 {
243242 exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
@@ -254,7 +253,7 @@ function DotNetTestFilter {
254253
255254task Test SetupHelpForTests, TestServer, TestE2E
256255
257- task TestServer TestServerWinPS, TestServerPS7, TestServerPS71
256+ task TestServer TestServerWinPS, TestServerPS7, TestServerPS72
258257
259258task TestServerWinPS - If (-not $script :IsUnix ) {
260259 Set-Location .\test\PowerShellEditorServices.Test\
@@ -268,24 +267,24 @@ task TestServerPS7 {
268267 }
269268}
270269
271- task TestServerPS71 {
270+ task TestServerPS72 {
272271 Set-Location .\test\PowerShellEditorServices.Test\
273272 Invoke-WithCreateDefaultHook - NewModulePath $script :PSCoreModulePath {
274- exec { & $script :dotnetExe test -- logger trx -f $script :NetRuntime.PS71 (DotNetTestFilter) }
273+ exec { & $script :dotnetExe test -- logger trx -f $script :NetRuntime.PS72 (DotNetTestFilter) }
275274 }
276275}
277276
278277task TestE2E {
279278 Set-Location .\test\PowerShellEditorServices.Test.E2E\
280279
281280 $env: PWSH_EXE_NAME = if ($IsCoreCLR ) { " pwsh" } else { " powershell" }
282- exec { & $script :dotnetExe test -- logger trx -f $script :NetRuntime.PS62 (DotNetTestFilter) }
281+ exec { & $script :dotnetExe test -- logger trx -f $script :NetRuntime.PS7 (DotNetTestFilter) }
283282
284283 # Run E2E tests in ConstrainedLanguage mode.
285284 if (! $script :IsUnix ) {
286285 try {
287286 [System.Environment ]::SetEnvironmentVariable(" __PSLockdownPolicy" , " 0x80000007" , [System.EnvironmentVariableTarget ]::Machine);
288- exec { & $script :dotnetExe test -- logger trx -f $script :NetRuntime.PS62 (DotNetTestFilter) }
287+ exec { & $script :dotnetExe test -- logger trx -f $script :NetRuntime.PS7 (DotNetTestFilter) }
289288 } finally {
290289 [System.Environment ]::SetEnvironmentVariable(" __PSLockdownPolicy" , $null , [System.EnvironmentVariableTarget ]::Machine);
291290 }
0 commit comments