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