always replace .NET 3.5 of json.net with 4.0 on build.

This commit is contained in:
kay.one 2013-08-05 15:49:41 -07:00
commit d64bb56575
15 changed files with 26 additions and 15 deletions

View file

@ -26,6 +26,8 @@ Function Build()
CheckExitCode
CleanFolder $outputFolder
AddJsonNet
}
Function CleanFolder($path)
@ -35,6 +37,8 @@ Function CleanFolder($path)
get-childitem $path -File -Filter *.transform -Recurse | foreach ($_) {remove-item $_.fullname}
get-childitem $path -File -Filter Newtonsoft.Json.* -Recurse | foreach ($_) {remove-item $_.fullname}
Write-Host Removing FluentValidation.Resources files
get-childitem $path -File -Filter FluentValidation.resources.dll -recurse | foreach ($_) {remove-item $_.fullname}
@ -47,6 +51,12 @@ Function CleanFolder($path)
}
}
Function AddJsonNet()
{
Copy-Item .\packages\Newtonsoft.Json.5.*\lib\net35\*.* -Destination $outputFolder -Verbose
}
Function PackageTests()
{
Write-Host Packaging Tests