26 lines
798 B
PowerShell
26 lines
798 B
PowerShell
function Get-PackageAppConfigXml {
|
|
<#
|
|
.SYNOPSIS
|
|
Returns the App.Config XML object for the given package.
|
|
#>
|
|
[CmdletBinding()]
|
|
Param(
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$FeedSource,
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$Name,
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$Version,
|
|
[Parameter(Mandatory=$false)]
|
|
[PSCredential]$Credential = $null
|
|
)
|
|
$loglead = Get-LogLeadName
|
|
|
|
# Query for the nuspec from Proget.
|
|
Write-Verbose "$loglead : Querying for App.Config for package $Name $Version";
|
|
$packagePath = "tools/$($Package.Name).exe.config"
|
|
[xml]$result = (Get-PackageFile -feedSource $FeedSource -name $Name -version $Version -packagePath $packagePath -Credential $Credential);
|
|
|
|
return $result;
|
|
}
|