From a023ddb76b5b24fa8f2155dba53db97cb34f9e78 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Wed, 9 Oct 2013 10:44:54 +0200 Subject: [PATCH] Fix json.net NuGet problem --- build/NuSpecs/tools/install.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/NuSpecs/tools/install.ps1 b/build/NuSpecs/tools/install.ps1 index 19af134c2a..46a9df0a4a 100644 --- a/build/NuSpecs/tools/install.ps1 +++ b/build/NuSpecs/tools/install.ps1 @@ -22,6 +22,12 @@ if ($project) { $umbracoFilesPath = Join-Path $rootPath "UmbracoFiles\*" Copy-Item $umbracoFilesPath $projectDestinationPath -recurse -force + # Remove Newtonsoft.Json if present in the bin folder + # If we don't do this, the correct version never gets copied in + $projectDestinationPath = Split-Path $project.FullName -Parent + $jsonDllFile = Join-Path $projectDestinationPath "bin\Newtonsoft.Json.dll" + Remove-Item $jsonDllFile -Confirm:$false + # Open readme.txt file $DTE.ItemOperations.OpenFile($toolsPath + '\Readme.txt') } \ No newline at end of file