2020
2121$script :IsCIBuild = $env: APPVEYOR -ne $null
2222$script :IsUnix = $PSVersionTable.PSEdition -and $PSVersionTable.PSEdition -eq " Core" -and ! $IsWindows
23- $script :TargetFrameworksParam = " /p:TargetFrameworks=\`" $ ( if (! $script :IsUnix ) { " net451 ;" }) netstandard1.6\`" "
23+ $script :TargetFrameworksParam = " /p:TargetFrameworks=\`" $ ( if (! $script :IsUnix ) { " net452 ;" }) netstandard1.6\`" "
2424$script :SaveModuleSupportsAllowPrerelease = (Get-Command Save-Module ).Parameters.ContainsKey(" AllowPrerelease" )
2525$script :BuildInfoPath = [System.IO.Path ]::Combine($PSScriptRoot , " src" , " PowerShellEditorServices.Host" , " BuildInfo" , " BuildInfo.cs" )
2626
@@ -138,7 +138,7 @@ task GetProductVersion -Before PackageNuGet, PackageModule, UploadArtifacts {
138138
139139function BuildForPowerShellVersion ($version ) {
140140 Write-Host - ForegroundColor Green " `n ### Testing API usage for PowerShell $version ...`n "
141- exec { & $script :dotnetExe build -f net451 .\src\PowerShellEditorServices\PowerShellEditorServices.csproj / p:PowerShellVersion= $version }
141+ exec { & $script :dotnetExe build -f net452 .\src\PowerShellEditorServices\PowerShellEditorServices.csproj / p:PowerShellVersion= $version }
142142}
143143
144144task TestPowerShellApi - If { ! $script :IsUnix } {
@@ -198,7 +198,7 @@ namespace Microsoft.PowerShell.EditorServices.Host
198198task Build {
199199 exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj -f netstandard1.6 }
200200 if (! $script :IsUnix ) {
201- exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj -f net451 }
201+ exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj -f net452 }
202202 }
203203 exec { & $script :dotnetExe build - c $Configuration .\src\PowerShellEditorServices.VSCode\PowerShellEditorServices.VSCode.csproj $script :TargetFrameworksParam }
204204 exec { & $script :dotnetExe publish - c $Configuration .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f netstandard1.6 }
@@ -274,12 +274,12 @@ task LayoutModule -After Build {
274274 Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \netstandard1.6 \publish\runtimes\win\lib\netstandard1.3 \* - Filter System.IO.Pipes* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Core\
275275
276276 if (! $script :IsUnix ) {
277- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices\bin\$Configuration \net451 \Serilog* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop
278- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices\bin\$Configuration \net451 \System.Runtime.InteropServices.RuntimeInformation.dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
277+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices\bin\$Configuration \net452 \Serilog* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop
278+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices\bin\$Configuration \net452 \System.Runtime.InteropServices.RuntimeInformation.dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
279279
280- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net451 \* - Filter Microsoft.PowerShell.EditorServices* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
281- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net451 \Newtonsoft.Json.dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
282- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net451 \UnixConsoleEcho.dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
280+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net452 \* - Filter Microsoft.PowerShell.EditorServices* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
281+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net452 \Newtonsoft.Json.dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
282+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net452 \UnixConsoleEcho.dll - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
283283 }
284284
285285 # Copy Third Party Notices.txt to module folder
@@ -292,7 +292,7 @@ task LayoutModule -After Build {
292292
293293 Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.VSCode\bin\$Configuration \netstandard1.6 \* - Filter Microsoft.PowerShell.EditorServices.VSCode* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices.VSCode\bin\Core\
294294 if (! $script :IsUnix ) {
295- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.VSCode\bin\$Configuration \net451 \* - Filter Microsoft.PowerShell.EditorServices.VSCode* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices.VSCode\bin\Desktop\
295+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.VSCode\bin\$Configuration \net452 \* - Filter Microsoft.PowerShell.EditorServices.VSCode* .dll - Destination $PSScriptRoot \module\PowerShellEditorServices.VSCode\bin\Desktop\
296296 }
297297
298298 if ($Configuration -eq " Debug" ) {
@@ -302,10 +302,10 @@ task LayoutModule -After Build {
302302 Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Protocol\bin\$Configuration \netstandard1.6 \Microsoft.PowerShell.EditorServices.Protocol.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Core\
303303
304304 if (! $script :IsUnix ) {
305- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.VSCode\bin\$Configuration \net451 \Microsoft.PowerShell.EditorServices.VSCode.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices.VSCode\bin\Desktop\
306- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices\bin\$Configuration \net451 \Microsoft.PowerShell.EditorServices.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
307- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net451 \Microsoft.PowerShell.EditorServices.Host.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
308- Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Protocol\bin\$Configuration \net451 \Microsoft.PowerShell.EditorServices.Protocol.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
305+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.VSCode\bin\$Configuration \net452 \Microsoft.PowerShell.EditorServices.VSCode.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices.VSCode\bin\Desktop\
306+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices\bin\$Configuration \net452 \Microsoft.PowerShell.EditorServices.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
307+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Host\bin\$Configuration \net452 \Microsoft.PowerShell.EditorServices.Host.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
308+ Copy-Item - Force - Path $PSScriptRoot \src\PowerShellEditorServices.Protocol\bin\$Configuration \net452 \Microsoft.PowerShell.EditorServices.Protocol.pdb - Destination $PSScriptRoot \module\PowerShellEditorServices\bin\Desktop\
309309 }
310310 }
311311}
0 commit comments