issue 3347 (#3348)
Fixes #3347 Co-authored-by: freddydk <freddydk@users.noreply.github.com>
This commit is contained in:
Родитель
b4b554d420
Коммит
256d0e6e34
|
@ -146,7 +146,15 @@ try {
|
||||||
$nuspec | ForEach-Object { Write-Verbose $_ }
|
$nuspec | ForEach-Object { Write-Verbose $_ }
|
||||||
$manifest = [xml]$nuspec
|
$manifest = [xml]$nuspec
|
||||||
$appId = ''
|
$appId = ''
|
||||||
$appName = $manifest.package.metadata.title
|
if ($manifest.package.metadata.PSObject.Properties.Name -eq 'title') {
|
||||||
|
$appName = $manifest.package.metadata.title
|
||||||
|
}
|
||||||
|
elseif ($manifest.package.metadata.PSObject.Properties.Name -eq 'description') {
|
||||||
|
$appName = $manifest.package.metadata.description
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$appName = $manifest.package.metadata.id
|
||||||
|
}
|
||||||
if ($manifest.package.metadata.id -match '^.*([0-9A-Fa-f]{8}\-[0-9A-Fa-f]{4}\-[0-9A-Fa-f]{4}\-[0-9A-Fa-f]{4}\-[0-9A-Fa-f]{12})$') {
|
if ($manifest.package.metadata.id -match '^.*([0-9A-Fa-f]{8}\-[0-9A-Fa-f]{4}\-[0-9A-Fa-f]{4}\-[0-9A-Fa-f]{4}\-[0-9A-Fa-f]{12})$') {
|
||||||
# If packageId ends in a GUID (AppID) then use the AppId for the packageId
|
# If packageId ends in a GUID (AppID) then use the AppId for the packageId
|
||||||
$appId = "$($matches[1])"
|
$appId = "$($matches[1])"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
6.0.7
|
6.0.7
|
||||||
|
Issue 3347 Download-BcNuGetPackageToFolder to support package description for app name if title is not specified
|
||||||
|
|
||||||
6.0.6
|
6.0.6
|
||||||
Include Microsoft_Business Foundation Test Libraries.app when importing test libraries (and tests)
|
Include Microsoft_Business Foundation Test Libraries.app when importing test libraries (and tests)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче