Skip to content

Commit

Permalink
Also add the native libraries to the NuGet package in the AnyCPU build (
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jun 20, 2019
1 parent 9391173 commit 66b984d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions publish/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,16 @@ function addMagickNetLibraries($xml, $quantumName, $platform) {
}

function addNativeLibrary($quantumName, $platform, $runtime, $extension, $destination) {
if ($platform -eq "Any CPU") {
return
}

$source = fullPath "src\Magick.Native\libraries\Magick.Native-$quantumName-$platform$extension"
$target = "runtimes\$runtime-$platform\native\Magick.Native-$quantumName-$platform$extension"
addFile $xml $source $target
}

function addNativeLibraries($xml, $quantumName, $platform) {
if ($platform -eq "AnyCPU") {
if ($platform -eq "Any CPU")
{
addNativeLibraries $xml, $quantumName "x86"
addNativeLibraries $xml, $quantumName "x64"
return
}

Expand Down

0 comments on commit 66b984d

Please sign in to comment.