Skip to content

Commit 585d0c4

Browse files
committed
Reduce build time
The PowerShell Editor Services library is referenced by the Hosting and VSCode apps, so `dotnet` automatically builds what's required, therefore we don't need to manually build it first (which caused an unnecessary publish).
1 parent c83d94c commit 585d0c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

PowerShellEditorServices.build.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,12 @@ task SetupHelpForTests {
224224
}
225225

226226
Task Build {
227-
exec { & $script:dotnetExe publish -c $Configuration .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f $script:NetRuntime.Standard }
228227
exec { & $script:dotnetExe publish -c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script:NetRuntime.PS7 }
229-
if (-not $script:IsNix)
230-
{
228+
229+
if (-not $script:IsNix) {
231230
exec { & $script:dotnetExe publish -c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script:NetRuntime.Desktop }
232231
}
233232

234-
# Build PowerShellEditorServices.VSCode module
235233
exec { & $script:dotnetExe publish -c $Configuration .\src\PowerShellEditorServices.VSCode\PowerShellEditorServices.VSCode.csproj -f $script:NetRuntime.Standard }
236234
}
237235

0 commit comments

Comments
 (0)