@@ -48,14 +48,13 @@ $script:BuildInfoPath = [System.IO.Path]::Combine($PSScriptRoot, "src", "PowerSh
48
48
$script :PsesCommonProps = [xml ](Get-Content - Raw " $PSScriptRoot /PowerShellEditorServices.Common.props" )
49
49
50
50
$script :NetRuntime = @ {
51
- PS7 = ' netcoreapp3.1'
52
51
PS72 = ' net6.0'
53
52
PS73 = ' net7.0'
54
53
Desktop = ' net462'
55
54
Standard = ' netstandard2.0'
56
55
}
57
56
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"
59
58
$script :HostDeskOutput = " $PSScriptRoot /src/PowerShellEditorServices.Hosting/bin/$Configuration /$ ( $script :NetRuntime.Desktop ) /publish"
60
59
$script :PsesOutput = " $PSScriptRoot /src/PowerShellEditorServices/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
61
60
$script :VSCodeOutput = " $PSScriptRoot /src/PowerShellEditorServices.VSCode/bin/$Configuration /$ ( $script :NetRuntime.Standard ) /publish"
@@ -72,13 +71,6 @@ Task FindDotNet {
72
71
$existingVersion , $null = (dotnet -- version) -split ' -'
73
72
Assert ([Version ]$existingVersion -ge [Version ](" 6.0" )) " .NET SDK 6.0 or higher is required, please update it: https://aka.ms/dotnet-cli"
74
73
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
-
82
74
Write-Host " Using dotnet v$ ( dotnet -- version) at path $ ( (Get-Command dotnet).Source) " - ForegroundColor Green
83
75
}
84
76
@@ -172,7 +164,8 @@ Task SetupHelpForTests {
172
164
173
165
Task Build FindDotNet, CreateBuildInfo, {
174
166
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
+
176
169
if (-not $script :IsNix ) {
177
170
Invoke-BuildExec { & dotnet publish $script :dotnetBuildArgs .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
178
171
}
@@ -183,7 +176,7 @@ Task Build FindDotNet, CreateBuildInfo, {
183
176
184
177
Task Test TestServer, TestE2E
185
178
186
- Task TestServer TestServerWinPS, TestServerPS7 , TestServerPS72, TestServerPS73
179
+ Task TestServer TestServerWinPS, TestServerPS72, TestServerPS73
187
180
188
181
# NOTE: While these can run under `pwsh.exe` we only want them to run under
189
182
# `powershell.exe` so that the CI time isn't doubled.
@@ -196,11 +189,6 @@ Task TestServerWinPS -If ($PSVersionTable.PSEdition -eq "Desktop") Build, SetupH
196
189
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.Desktop }
197
190
}
198
191
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
-
204
192
Task TestServerPS72 - If ($PSVersionTable.PSEdition -eq " Core" ) Build, SetupHelpForTests, {
205
193
Set-Location .\test\PowerShellEditorServices.Test\
206
194
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetRuntime.PS72 }
0 commit comments