Skip to content

Commit 9999f7e

Browse files
committed
Fixed an issue where wpf and winform dependencies weren't being copied.
1 parent 82625f8 commit 9999f7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/Package.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ ForEach ($p in $client_projects) {
2727
}
2828

2929
$isSignedProject = $($p.Name).EndsWith(".Signed")
30-
$assemblyName = $($p.Name).Replace(".Signed", "")
3130
$workingDirectory = "$working_dir\$($p.Name)"
3231
Create-Directory $workingDirectory
3332

@@ -38,6 +37,8 @@ ForEach ($p in $client_projects) {
3837
$buildDirectory = "$build_dir\$configuration\$($p.Name)\lib\$($b.NuGetDir)"
3938
$workingLibDirectory = "$workingDirectory\lib\$($b.NuGetDir)"
4039
Create-Directory $workingLibDirectory
40+
41+
Get-ChildItem -Path $buildDirectory | Where-Object { $_.Name -eq "$($p.Name).dll" -Or $_.Name -eq "$($p.Name).pdb" -or $_.Name -eq "$($p.Name).xml" } | Copy-Item -Destination $workingLibDirectory
4142
}
4243

4344
# Copy the source code for Symbol Source.
@@ -53,7 +54,8 @@ ForEach ($p in $client_projects) {
5354

5455
$nuspecFile = "$workingDirectory\$($p.Name).nuspec"
5556
If ($isSignedProject) {
56-
Rename-Item -Path "$workingDirectory\$assemblyName.nuspec" -NewName $nuspecFile
57+
$unsignedNuspecFile = $($p.Name).Replace(".Signed", "");
58+
Rename-Item -Path "$workingDirectory\$unsignedNuspecFile.nuspec" -NewName $nuspecFile
5759
}
5860

5961
# update NuGet nuspec file.

0 commit comments

Comments
 (0)