@@ -24,14 +24,13 @@ $script:PsesCommonProps = [xml](Get-Content -Raw "$PSScriptRoot/PowerShellEditor
24
24
$script :IsPreview = [bool ]($script :PsesCommonProps.Project.PropertyGroup.VersionSuffix )
25
25
26
26
$script :NetRuntime = @ {
27
- PS62 = ' netcoreapp2.1'
28
27
PS7 = ' netcoreapp3.1'
29
- PS71 = ' net5 .0'
28
+ PS72 = ' net6 .0'
30
29
Desktop = ' net461'
31
30
Standard = ' netstandard2.0'
32
31
}
33
32
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"
35
34
$script :HostDeskOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.Desktop ) /publish"
36
35
$script :PsesOutput = " $PSScriptRoot /src/PowerShellEditorServices/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
37
36
$script :VSCodeOutput = " $PSScriptRoot /src/PowerShellEditorServices.VSCode/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
@@ -103,7 +102,7 @@ function Install-Dotnet {
103
102
Write-Host ' .NET installation complete' - ForegroundColor Green
104
103
}
105
104
106
- task SetupDotNet - Before Clean , Build, TestServerWinPS, TestServerPS7, TestServerPS71 , TestE2E {
105
+ task SetupDotNet - Before Clean , Build, TestServerWinPS, TestServerPS7, TestServerPS72 , TestE2E {
107
106
108
107
$dotnetPath = " $PSScriptRoot /.dotnet"
109
108
$dotnetExePath = if ($script :IsUnix ) { " $dotnetPath /dotnet" } else { " $dotnetPath /dotnet.exe" }
@@ -237,7 +236,7 @@ task SetupHelpForTests {
237
236
238
237
task Build BinClean, {
239
238
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 }
241
240
if (-not $script :IsUnix )
242
241
{
243
242
exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
@@ -254,7 +253,7 @@ function DotNetTestFilter {
254
253
255
254
task Test SetupHelpForTests, TestServer, TestE2E
256
255
257
- task TestServer TestServerWinPS, TestServerPS7, TestServerPS71
256
+ task TestServer TestServerWinPS, TestServerPS7, TestServerPS72
258
257
259
258
task TestServerWinPS - If (-not $script :IsUnix ) {
260
259
Set-Location .\test\PowerShellEditorServices.Test\
@@ -268,24 +267,24 @@ task TestServerPS7 {
268
267
}
269
268
}
270
269
271
- task TestServerPS71 {
270
+ task TestServerPS72 {
272
271
Set-Location .\test\PowerShellEditorServices.Test\
273
272
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) }
275
274
}
276
275
}
277
276
278
277
task TestE2E {
279
278
Set-Location .\test\PowerShellEditorServices.Test.E2E\
280
279
281
280
$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) }
283
282
284
283
# Run E2E tests in ConstrainedLanguage mode.
285
284
if (! $script :IsUnix ) {
286
285
try {
287
286
[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) }
289
288
} finally {
290
289
[System.Environment ]::SetEnvironmentVariable(" __PSLockdownPolicy" , $null , [System.EnvironmentVariableTarget ]::Machine);
291
290
}
0 commit comments