diff --git a/build.psm1 b/build.psm1 index 0d87ac13b1..de75b1c15c 100644 --- a/build.psm1 +++ b/build.psm1 @@ -160,14 +160,6 @@ if ( $env:PSModulePath -notcontains $TestModulePath ) { $env:PSModulePath = $TestModulePath+$TestModulePathSeparator+$($env:PSModulePath) } -# -# At the moment, we just support x64 builds. When we support x86 builds, this -# check may need to verify the SDK for the specified architecture. -# -function Get-Win10SDKBinDir { - return "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64" -} - function Test-Win10SDK { # The Windows 10 SDK is installed to "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64", # but the directory may exist even if the SDK has not been installed. @@ -290,18 +282,10 @@ function Start-PSBuild { # These runtimes must match those in project.json # We do not use ValidateScript since we want tab completion - [ValidateSet("ubuntu.14.04-x64", - "ubuntu.16.04-x64", - "debian.8-x64", - "centos.7-x64", - "fedora.24-x64", - "win7-x64", + [ValidateSet("win7-x64", "win7-x86", - "win81-x64", - "win10-x64", "osx.10.12-x64", - "opensuse.13.2-x64", - "opensuse.42.1-x64", + "linux-x64", "linux-arm")] [string]$Runtime, @@ -589,18 +573,10 @@ function New-PSOptions { # These are duplicated from Start-PSBuild # We do not use ValidateScript since we want tab completion [ValidateSet("", - "ubuntu.14.04-x64", - "ubuntu.16.04-x64", - "debian.8-x64", - "centos.7-x64", - "fedora.24-x64", "win7-x86", "win7-x64", - "win81-x64", - "win10-x64", "osx.10.12-x64", - "opensuse.13.2-x64", - "opensuse.42.1-x64", + "linux-x64", "linux-arm")] [string]$Runtime, @@ -659,17 +635,23 @@ function New-PSOptions { } if (-not $Runtime) { - $Runtime = dotnet --info | ForEach-Object { - if ($_ -match "RID") { - $_ -split "\s+" | Select-Object -Last 1 + if ($Environment.IsLinux) { + $Runtime = "linux-x64" + } else { + $RID = dotnet --info | ForEach-Object { + if ($_ -match "RID") { + $_ -split "\s+" | Select-Object -Last 1 + } } - } - # We plan to release packages targetting win7-x64 and win7-x86 RIDs, - # which supports all supported windows platforms. - # So we, will change the RID to win7- - if ($Environment.IsWindows) { - $Runtime = $Runtime -replace "win\d+", "win7" + if ($Environment.IsWindows) { + # We plan to release packages targetting win7-x64 and win7-x86 RIDs, + # which supports all supported windows platforms. + # So we, will change the RID to win7- + $Runtime = $RID -replace "win\d+", "win7" + } else { + $Runtime = $RID + } } if (-not $Runtime) { @@ -851,7 +833,7 @@ function Start-PSPester { { $Path += "$PSScriptRoot/tools/failingTests" } - + # we need to do few checks and if user didn't provide $ExcludeTag explicitly, we should alternate the default if ($Unelevate) { @@ -1869,18 +1851,10 @@ function Start-CrossGen { $PublishPath, [Parameter(Mandatory=$true)] - [ValidateSet("ubuntu.14.04-x64", - "ubuntu.16.04-x64", - "debian.8-x64", - "centos.7-x64", - "fedora.24-x64", - "win7-x86", + [ValidateSet("win7-x86", "win7-x64", - "win81-x64", - "win10-x64", "osx.10.12-x64", - "opensuse.13.2-x64", - "opensuse.42.1-x64", + "linux-x64", "linux-arm")] [string] $Runtime diff --git a/src/ResGen/ResGen.csproj b/src/ResGen/ResGen.csproj index b06fd0d181..87315226e6 100644 --- a/src/ResGen/ResGen.csproj +++ b/src/ResGen/ResGen.csproj @@ -5,7 +5,7 @@ netcoreapp2.0 resgen Exe - ubuntu.16.10-x64;ubuntu.16.04-x64;ubuntu.14.04-x64;debian.8-x64;centos.7-x64;fedora.24-x64;win7-x86;win7-x64;win81-x64;win10-x64;osx.10.12-x64;opensuse.13.2-x64;opensuse.42.1-x64 + win7-x86;win7-x64;osx.10.12-x64;linux-x64 diff --git a/src/TypeCatalogGen/TypeCatalogGen.csproj b/src/TypeCatalogGen/TypeCatalogGen.csproj index 7ab1404d63..64d69352ed 100644 --- a/src/TypeCatalogGen/TypeCatalogGen.csproj +++ b/src/TypeCatalogGen/TypeCatalogGen.csproj @@ -5,7 +5,7 @@ netcoreapp2.0 TypeCatalogGen Exe - ubuntu.14.04-x64;ubuntu.16.04-x64;ubuntu.16.10-x64;debian.8-x64;centos.7-x64;fedora.24-x64;win7-x86;win7-x64;win81-x64;win10-x64;osx.10.12-x64;opensuse.13.2-x64;opensuse.42.1-x64 + win7-x86;win7-x64;osx.10.12-x64;linux-x64 diff --git a/src/powershell-unix/powershell-unix.csproj b/src/powershell-unix/powershell-unix.csproj index f3fae7671f..6bc16232a7 100644 --- a/src/powershell-unix/powershell-unix.csproj +++ b/src/powershell-unix/powershell-unix.csproj @@ -6,7 +6,7 @@ PowerShell top-level project with .NET CLI host powershell Exe - ubuntu.14.04-x64;ubuntu.16.04-x64;ubuntu.16.10-x64;debian.8-x64;centos.7-x64;fedora.24-x64;osx.10.12-x64;opensuse.13.2-x64;opensuse.42.1-x64 + linux-x64;osx.10.12-x64; diff --git a/src/powershell-win-core/powershell-win-core.csproj b/src/powershell-win-core/powershell-win-core.csproj index de703c4c84..5c1fffe8c4 100644 --- a/src/powershell-win-core/powershell-win-core.csproj +++ b/src/powershell-win-core/powershell-win-core.csproj @@ -6,7 +6,7 @@ PowerShell Core on Windows top-level project powershell Exe - win7-x86;win7-x64;win81-x64;win10-x64 + win7-x86;win7-x64 diff --git a/test/PSReadLine/PSReadLine.tests.csproj b/test/PSReadLine/PSReadLine.tests.csproj index 329a964bda..b8e2dd0e2e 100644 --- a/test/PSReadLine/PSReadLine.tests.csproj +++ b/test/PSReadLine/PSReadLine.tests.csproj @@ -6,7 +6,7 @@ PSReadLine basic tests TestPSReadLine Exe - ubuntu.14.04-x64;ubuntu.16.04-x64;centos.7-x64;fedora.24-x64;win7-x86;win7-x64;win10-x64;osx.10.12-x64;opensuse.13.2-x64;opensuse.42.1-x64 + win7-x86;win7-x64;osx.10.12-x64;linux-x64 diff --git a/test/csharp/csharp.tests.csproj b/test/csharp/csharp.tests.csproj index 23da9190ef..03eb9cf93a 100644 --- a/test/csharp/csharp.tests.csproj +++ b/test/csharp/csharp.tests.csproj @@ -5,7 +5,7 @@ PowerShell On Linux xUnit Tests powershell-tests - ubuntu.14.04-x64;ubuntu.16.04-x64;debian.8-x64;centos.7-x64;fedora.24-x64;win7-x86;win7-x64;win81-x64;win10-x64;osx.10.12-x64;opensuse.13.2-x64;opensuse.42.1-x64 + win7-x86;win7-x64;osx.10.12-x64;linux-x64 diff --git a/test/tools/TestExe/TestExe.csproj b/test/tools/TestExe/TestExe.csproj index 9cd9ac354f..f9c71f702c 100644 --- a/test/tools/TestExe/TestExe.csproj +++ b/test/tools/TestExe/TestExe.csproj @@ -5,7 +5,7 @@ netcoreapp2.0 testexe Exe - ubuntu.16.04-x64;ubuntu.14.04-x64;debian.8-x64;centos.7-x64;fedora.24-x64;win7-x86;win7-x64;win81-x64;win10-x64;osx.10.12-x64;opensuse.13.2-x64;opensuse.42.1-x64 + win7-x86;win7-x64;osx.10.12-x64;linux-x64