From 99478c6f7578fe61554a429d291ad9a247839b1e Mon Sep 17 00:00:00 2001 From: Dmitry Dzygin Date: Thu, 9 Feb 2017 11:27:59 +0100 Subject: [PATCH] Updating NuGet package specification, setting CopyLocal=false for the installed libraries --- Install.ps1 | 9 +++++++++ Package.nuspec | 20 +++++++++++--------- 2 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 Install.ps1 diff --git a/Install.ps1 b/Install.ps1 new file mode 100644 index 0000000000..8225ce216e --- /dev/null +++ b/Install.ps1 @@ -0,0 +1,9 @@ +param($installPath, $toolsPath, $package, $project) +$asms = $package.AssemblyReferences | %{$_.Name} +foreach ($reference in $project.Object.References) +{ + if ($asms -contains $reference.Name + ".dll") + { + $reference.CopyLocal = $false; + } +} \ No newline at end of file diff --git a/Package.nuspec b/Package.nuspec index c672a04773..8e972eb868 100644 --- a/Package.nuspec +++ b/Package.nuspec @@ -17,18 +17,20 @@ - - - - - - - - - + + + + + + + + + + +