Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PowerShell/PowerShell.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-09-07 01:12:10 +0300
committerGitHub <noreply@github.com>2022-09-07 01:12:10 +0300
commit3c745d0c9246461ffb5ae6250e2487061f72e6ac (patch)
treedc34aef4feb5e191d24f8e68a5ed37edb36d3881
parent72454c98a50b369eef530040204c22331659257f (diff)
[release/v7.3.0-rc.1] Add XML reference documents to NuPkg files for SDK (#18017)
-rw-r--r--tools/packaging/packaging.psm18
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1
index 2e278182f9..775270acab 100644
--- a/tools/packaging/packaging.psm1
+++ b/tools/packaging/packaging.psm1
@@ -2108,7 +2108,7 @@ function New-ILNugetPackageSource
#region ref
$refFolder = New-Item (Join-Path $filePackageFolder.FullName "ref/$script:netCoreRuntime") -ItemType Directory -Force
- CopyReferenceAssemblies -assemblyName $fileBaseName -refBinPath $refBinPath -refNugetPath $refFolder -assemblyFileList $fileList
+ CopyReferenceAssemblies -assemblyName $fileBaseName -refBinPath $refBinPath -refNugetPath $refFolder -assemblyFileList $fileList -winBinPath $WinFxdBinPath
#endregion ref
$packageRuntimesFolderPath = $packageRuntimesFolder.FullName
@@ -2257,7 +2257,8 @@ function CopyReferenceAssemblies
[string] $assemblyName,
[string] $refBinPath,
[string] $refNugetPath,
- [string[]] $assemblyFileList
+ [string[]] $assemblyFileList,
+ [string] $winBinPath
)
$supportedRefList = @(
@@ -2286,7 +2287,8 @@ function CopyReferenceAssemblies
default {
$ref_SMA = Join-Path -Path $refBinPath -ChildPath System.Management.Automation.dll
$ref_doc = Join-Path -Path $refBinPath -ChildPath System.Management.Automation.xml
- Copy-Item $ref_SMA, $ref_doc -Destination $refNugetPath -Force
+ $self_ref_doc = Join-Path -Path $winBinPath -ChildPath "$assemblyName.xml"
+ Copy-Item $ref_SMA, $ref_doc, $self_ref_doc -Destination $refNugetPath -Force
Write-Log "Copied file '$ref_SMA' and '$ref_doc' to '$refNugetPath'"
}
}