-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Use new TFM net5.0. Step 2 #12503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new TFM net5.0. Step 2 #12503
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,7 +95,7 @@ | |
| <Company>Microsoft Corporation</Company> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @adityapatwardhan, your last commit had 1 failures in Expected $true, but got $false.
at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\Microsoft.PowerShell.Core\Enter-PSHostProcess.Tests.ps1: line 148
148: Should -BeTrue -Because (get-content $splat.FilePath -Raw) |
||
| <Copyright>(c) Microsoft Corporation. All rights reserved.</Copyright> | ||
|
|
||
| <TargetFramework>netcoreapp5.0</TargetFramework> | ||
| <TargetFramework>net5.0</TargetFramework> | ||
| <LangVersion>8.0</LangVersion> | ||
| <PublishReadyToRun>true</PublishReadyToRun> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ $packagingStrings = Import-PowerShellDataFile "$PSScriptRoot\packaging.strings.p | |
| Import-Module "$PSScriptRoot\..\Xml" -ErrorAction Stop -Force | ||
| $DebianDistributions = @("ubuntu.16.04", "ubuntu.18.04", "debian.9", "debian.10", "debian.11") | ||
| $RedhatDistributions = @("rhel.7","centos.8") | ||
| $script:netCoreRuntime = 'net5.0' | ||
|
|
||
| function Start-PSPackage { | ||
| [CmdletBinding(DefaultParameterSetName='Version',SupportsShouldProcess=$true)] | ||
|
|
@@ -131,14 +132,14 @@ function Start-PSPackage { | |
| -not $Script:Options -or ## Start-PSBuild hasn't been executed yet | ||
| -not $PSModuleRestoreCorrect -or ## Last build didn't specify '-PSModuleRestore' correctly | ||
| $Script:Options.Configuration -ne $Configuration -or ## Last build was with configuration other than 'Release' | ||
| $Script:Options.Framework -ne "net5.0" ## Last build wasn't for CoreCLR | ||
| $Script:Options.Framework -ne $script:netCoreRuntime ## Last build wasn't for CoreCLR | ||
| } else { | ||
| -not $Script:Options -or ## Start-PSBuild hasn't been executed yet | ||
| -not $crossGenCorrect -or ## Last build didn't specify '-CrossGen' correctly | ||
| -not $PSModuleRestoreCorrect -or ## Last build didn't specify '-PSModuleRestore' correctly | ||
| $Script:Options.Runtime -ne $Runtime -or ## Last build wasn't for the required RID | ||
| $Script:Options.Configuration -ne $Configuration -or ## Last build was with configuration other than 'Release' | ||
| $Script:Options.Framework -ne "net5.0" ## Last build wasn't for CoreCLR | ||
| $Script:Options.Framework -ne $script:netCoreRuntime ## Last build wasn't for CoreCLR | ||
| } | ||
|
|
||
| # Make sure the most recent build satisfies the package requirement | ||
|
|
@@ -1719,7 +1720,7 @@ function CreateNugetPlatformFolder | |
| [string] $PlatformBinPath | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. perhaps we should have one place where we define this in this script?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @TravisEz13 Please re-review. Pushed changes to use a variable. |
||
| ) | ||
|
|
||
| $destPath = New-Item -ItemType Directory -Path (Join-Path $PackageRuntimesFolder "$Platform/lib/netcoreapp5.0") | ||
| $destPath = New-Item -ItemType Directory -Path (Join-Path $PackageRuntimesFolder "$Platform/lib/$script:netCoreRuntime") | ||
| $fullPath = Join-Path $PlatformBinPath $file | ||
|
|
||
| if (-not(Test-Path $fullPath)) { | ||
|
|
@@ -1819,7 +1820,7 @@ function New-ILNugetPackage | |
| $packageRuntimesFolder = New-Item (Join-Path $filePackageFolder.FullName 'runtimes') -ItemType Directory | ||
|
|
||
| #region ref | ||
| $refFolder = New-Item (Join-Path $filePackageFolder.FullName 'ref/netcoreapp5.0') -ItemType Directory -Force | ||
| $refFolder = New-Item (Join-Path $filePackageFolder.FullName 'ref/$script:netCoreRuntime') -ItemType Directory -Force | ||
| CopyReferenceAssemblies -assemblyName $fileBaseName -refBinPath $refBinPath -refNugetPath $refFolder -assemblyFileList $fileList | ||
| #endregion ref | ||
|
|
||
|
|
@@ -1863,8 +1864,8 @@ function New-ILNugetPackage | |
| "Microsoft.PowerShell.Utility" | ||
| ) | ||
|
|
||
| $winModuleFolder = New-Item (Join-Path $contentFolder "runtimes\win\lib\netcoreapp5.0\Modules") -ItemType Directory -Force | ||
| $unixModuleFolder = New-Item (Join-Path $contentFolder "runtimes\unix\lib\netcoreapp5.0\Modules") -ItemType Directory -Force | ||
| $winModuleFolder = New-Item (Join-Path $contentFolder "runtimes\win\lib\$script:netCoreRuntime\Modules") -ItemType Directory -Force | ||
| $unixModuleFolder = New-Item (Join-Path $contentFolder "runtimes\unix\lib\$script:netCoreRuntime\Modules") -ItemType Directory -Force | ||
|
|
||
| foreach ($module in $winBuiltInModules) { | ||
| $source = Join-Path $WinFxdBinPath "Modules\$module" | ||
|
|
@@ -1991,7 +1992,7 @@ function New-ILNugetPackage | |
| } | ||
|
|
||
| <# | ||
| Copy the generated reference assemblies to the 'ref/netcoreapp5.0' folder properly. | ||
| Copy the generated reference assemblies to the 'ref/net5.0' folder properly. | ||
| This is a helper function used by 'New-ILNugetPackage' | ||
| #> | ||
| function CopyReferenceAssemblies | ||
|
|
@@ -2234,7 +2235,7 @@ function New-ReferenceAssembly | |
| Write-Log "Running: dotnet $arguments" | ||
| Start-NativeExecution -sb {dotnet $arguments} | ||
|
|
||
| $refBinPath = Join-Path $projectFolder "bin/Release/netcoreapp5.0/$assemblyName.dll" | ||
| $refBinPath = Join-Path $projectFolder "bin/Release/$script:netCoreRuntime/$assemblyName.dll" | ||
| if ($null -eq $refBinPath) { | ||
| throw "Reference assembly was not built." | ||
| } | ||
|
|
@@ -2886,7 +2887,7 @@ function New-MSIPatch | |
| # This example shows how to produce a Debug-x64 installer for development purposes. | ||
| cd $RootPathOfPowerShellRepo | ||
| Import-Module .\build.psm1; Import-Module .\tools\packaging\packaging.psm1 | ||
| New-MSIPackage -Verbose -ProductCode (New-Guid) -ProductSourcePath '.\src\powershell-win-core\bin\Debug\netcoreapp5.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3' | ||
| New-MSIPackage -Verbose -ProductCode (New-Guid) -ProductSourcePath '.\src\powershell-win-core\bin\Debug\net5.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3' | ||
| #> | ||
| function New-MSIPackage | ||
| { | ||
|
|
@@ -3088,7 +3089,7 @@ function New-MSIPackage | |
| # This example shows how to produce a Debug-x64 installer for development purposes. | ||
| cd $RootPathOfPowerShellRepo | ||
| Import-Module .\build.psm1; Import-Module .\tools\packaging\packaging.psm1 | ||
| New-MSIXPackage -Verbose -ProductSourcePath '.\src\powershell-win-core\bin\Debug\netcoreapp5.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3' | ||
| New-MSIXPackage -Verbose -ProductSourcePath '.\src\powershell-win-core\bin\Debug\net5.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3' | ||
| #> | ||
| function New-MSIXPackage | ||
| { | ||
|
|
@@ -3678,7 +3679,7 @@ function New-GlobalToolNupkg | |
| } | ||
|
|
||
| $packageInfo | ForEach-Object { | ||
| $ridFolder = New-Item -Path (Join-Path $_.RootFolder "tools/netcoreapp5.0/any") -ItemType Directory | ||
| $ridFolder = New-Item -Path (Join-Path $_.RootFolder "tools/$script:netCoreRuntime/any") -ItemType Directory | ||
|
|
||
| $packageType = $_.Type | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iSazonov, your last commit had 1 failures in
PowerShell-CI-macosTest-Connection.TraceRoute.TraceRoute works