Skip to content

Commit 6d6684a

Browse files
committed
Work around dotnet publish bug
1 parent c9d94be commit 6d6684a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PowerShellEditorServices.build.ps1

+6-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ task SetupDotNet -Before Clean, Build, TestServerWinPS, TestServerPS7, TestServe
107107
$dotnetExePath = if ($script:IsNix) { "$dotnetPath/dotnet" } else { "$dotnetPath/dotnet.exe" }
108108

109109
if (!(Test-Path $dotnetExePath)) {
110-
# TODO: Test .NET 5 with PowerShell 7.1, and add that channel here.
111-
Install-Dotnet -Channel '3.1','release/6.0.1xx-preview2'
110+
# TODO: Test .NET 5 with PowerShell 7.1
111+
Install-Dotnet -Channel '3.1','5.0','6.0'
112112
}
113113

114114
# This variable is used internally by 'dotnet' to know where it's installed
@@ -351,6 +351,10 @@ task LayoutModule -After Build {
351351
Copy-Item -Path $hostComponent.FullName -Destination $psesDeskHostPath -Force
352352
}
353353
}
354+
355+
# HACK: This is a temporary workaround of `dotnet publish`
356+
Write-Warning "Working around dotnet publish bug!"
357+
Copy-Item -Path $script:HostDeskOutput/../netstandard.dll -Destination $psesDeskHostPath -Force
354358
}
355359

356360
# Assemble the PowerShellEditorServices.VSCode module

0 commit comments

Comments
 (0)