Fix json.net NuGet problem

This commit is contained in:
Sebastiaan Janssen
2013-10-09 10:44:54 +02:00
parent f85f418d52
commit a023ddb76b

View File

@@ -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')
}