@@ -48,14 +48,13 @@ $script:BuildInfoPath = [System.IO.Path]::Combine($PSScriptRoot, "src", "PowerSh
4848$script :PsesCommonProps = [xml ](Get-Content - Raw " $PSScriptRoot /PowerShellEditorServices.Common.props" )
4949
5050$script :NetRuntime = @ {
51- PS7 = ' netcoreapp3.1'
5251 PS72 = ' net6.0'
5352 PS73 = ' net7.0'
5453 Desktop = ' net462'
5554 Standard = ' netstandard2.0'
5655}
5756
58- $script :HostCoreOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.PS7 ) /publish"
57+ $script :HostCoreOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.PS72 ) /publish"
5958$script :HostDeskOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.Desktop ) /publish"
6059$script :PsesOutput = " $PSScriptRoot /src/PowerShellEditorServices/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
6160$script :VSCodeOutput = " $PSScriptRoot /src/PowerShellEditorServices.VSCode/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
@@ -72,13 +71,6 @@ Task FindDotNet {
7271 $existingVersion , $null = (dotnet -- version) -split ' -'
7372 Assert ([Version ]$existingVersion -ge [Version ](" 6.0" )) " .NET SDK 6.0 or higher is required, please update it: https://aka.ms/dotnet-cli"
7473
75- # Anywhere other than on a Mac with an M1 processor, we additionally
76- # need the .NET 3.1 runtime for our netcoreapp3.1 framework.
77- if (-not $script :IsAppleM1 -and -not $script :IsArm64 ) {
78- $runtimes = dotnet -- list- runtimes
79- Assert ($runtimes -match " Microsoft.NETCore.App 3.1" ) " .NET Runtime 3.1 required but not found!"
80- }
81-
8274 Write-Host " Using dotnet v$ ( dotnet -- version) at path $ ( (Get-Command dotnet).Source) " - ForegroundColor Green
8375}
8476
@@ -172,7 +164,8 @@ Task SetupHelpForTests {
172164
173165Task Build FindDotNet, CreateBuildInfo, {
174166 Invoke-BuildExec { & dotnet publish $script :dotnetBuildArgs .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f $script :NetRuntime.Standard }
175- Invoke-BuildExec { & dotnet publish $script :dotnetBuildArgs .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS7 }
167+ Invoke-BuildExec { & dotnet publish $script :dotnetBuildArgs .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS72 }
168+
176169 if (-not $script :IsNix ) {
177170 Invoke-BuildExec { & dotnet publish $script :dotnetBuildArgs .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
178171 }
@@ -183,7 +176,7 @@ Task Build FindDotNet, CreateBuildInfo, {
183176
184177Task Test TestServer, TestE2E
185178
186- Task TestServer TestServerWinPS, TestServerPS7 , TestServerPS72, TestServerPS73
179+ Task TestServer TestServerWinPS, TestServerPS72, TestServerPS73
187180
188181# NOTE: While these can run under `pwsh.exe` we only want them to run under
189182# `powershell.exe` so that the CI time isn't doubled.
@@ -196,11 +189,6 @@ Task TestServerWinPS -If ($PSVersionTable.PSEdition -eq "Desktop") Build, SetupH
196189 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.Desktop }
197190}
198191
199- Task TestServerPS7 - If ($PSVersionTable.PSEdition -eq " Core" -and -not $script :IsAppleM1 -and -not $script :IsArm64 ) Build, SetupHelpForTests, {
200- Set-Location .\test\PowerShellEditorServices.Test\
201- Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS7 }
202- }
203-
204192Task TestServerPS72 - If ($PSVersionTable.PSEdition -eq " Core" ) Build, SetupHelpForTests, {
205193 Set-Location .\test\PowerShellEditorServices.Test\
206194 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS72 }
0 commit comments