mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
include config file for test projects to make assemblyredirect work
This commit is contained in:
parent
a225830da0
commit
1e29a2f4ee
@ -36,7 +36,7 @@ Function Build()
|
|||||||
Write-Host "##teamcity[progressFinish 'Build']"
|
Write-Host "##teamcity[progressFinish 'Build']"
|
||||||
}
|
}
|
||||||
|
|
||||||
Function CleanFolder($path)
|
Function CleanFolder($path, $keepConfigFiles)
|
||||||
{
|
{
|
||||||
Write-Host Removing XMLDoc files
|
Write-Host Removing XMLDoc files
|
||||||
get-childitem $path -File -Filter *.xml -Recurse | foreach ($_) {
|
get-childitem $path -File -Filter *.xml -Recurse | foreach ($_) {
|
||||||
@ -56,7 +56,10 @@ Function CleanFolder($path)
|
|||||||
|
|
||||||
get-childitem $path -File -Filter *.transform -Recurse | foreach ($_) {remove-item $_.fullname}
|
get-childitem $path -File -Filter *.transform -Recurse | foreach ($_) {remove-item $_.fullname}
|
||||||
|
|
||||||
|
if($keepConfigFiles -ne $true)
|
||||||
|
{
|
||||||
get-childitem $path -File -Filter *.dll.config -Recurse | foreach ($_) {remove-item $_.fullname}
|
get-childitem $path -File -Filter *.dll.config -Recurse | foreach ($_) {remove-item $_.fullname}
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host Removing FluentValidation.Resources files
|
Write-Host Removing FluentValidation.Resources files
|
||||||
get-childitem $path -File -Filter FluentValidation.resources.dll -recurse | foreach ($_) {remove-item $_.fullname}
|
get-childitem $path -File -Filter FluentValidation.resources.dll -recurse | foreach ($_) {remove-item $_.fullname}
|
||||||
@ -178,7 +181,7 @@ Function PackageTests()
|
|||||||
|
|
||||||
get-childitem $testPackageFolder -File -Filter *log.config | foreach ($_) {remove-item $_.fullname}
|
get-childitem $testPackageFolder -File -Filter *log.config | foreach ($_) {remove-item $_.fullname}
|
||||||
|
|
||||||
CleanFolder $testPackageFolder
|
CleanFolder $testPackageFolder $true
|
||||||
|
|
||||||
Write-Host "Adding MediaInfoDotNet.dll.config (for dllmap)"
|
Write-Host "Adding MediaInfoDotNet.dll.config (for dllmap)"
|
||||||
Copy-Item "$sourceFolder\MediaInfoDotNet.dll.config" -Destination $testPackageFolder -Force
|
Copy-Item "$sourceFolder\MediaInfoDotNet.dll.config" -Destination $testPackageFolder -Force
|
||||||
|
Loading…
Reference in New Issue
Block a user