include config file for test projects to make assemblyredirect work

This commit is contained in:
kayone 2014-08-25 19:30:57 -07:00
parent a225830da0
commit 1e29a2f4ee
1 changed files with 7 additions and 4 deletions

View File

@ -36,7 +36,7 @@ Function Build()
Write-Host "##teamcity[progressFinish 'Build']"
}
Function CleanFolder($path)
Function CleanFolder($path, $keepConfigFiles)
{
Write-Host Removing XMLDoc files
get-childitem $path -File -Filter *.xml -Recurse | foreach ($_) {
@ -56,8 +56,11 @@ Function CleanFolder($path)
get-childitem $path -File -Filter *.transform -Recurse | foreach ($_) {remove-item $_.fullname}
get-childitem $path -File -Filter *.dll.config -Recurse | foreach ($_) {remove-item $_.fullname}
if($keepConfigFiles -ne $true)
{
get-childitem $path -File -Filter *.dll.config -Recurse | foreach ($_) {remove-item $_.fullname}
}
Write-Host Removing FluentValidation.Resources files
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}
CleanFolder $testPackageFolder
CleanFolder $testPackageFolder $true
Write-Host "Adding MediaInfoDotNet.dll.config (for dllmap)"
Copy-Item "$sourceFolder\MediaInfoDotNet.dll.config" -Destination $testPackageFolder -Force