mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
always replace .NET 3.5 of json.net with 4.0 on build.
This commit is contained in:
parent
748d00c5af
commit
d64bb56575
15 changed files with 26 additions and 15 deletions
10
build.ps1
10
build.ps1
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue