diff --git a/NuGet/Download-BcNuGetPackageToFolder.ps1 b/NuGet/Download-BcNuGetPackageToFolder.ps1 index 0982671e1..cd9ee31e0 100644 --- a/NuGet/Download-BcNuGetPackageToFolder.ps1 +++ b/NuGet/Download-BcNuGetPackageToFolder.ps1 @@ -146,7 +146,15 @@ try { $nuspec | ForEach-Object { Write-Verbose $_ } $manifest = [xml]$nuspec $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 packageId ends in a GUID (AppID) then use the AppId for the packageId $appId = "$($matches[1])" diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index e6906c203..4c77677ad 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,4 +1,5 @@ 6.0.7 +Issue 3347 Download-BcNuGetPackageToFolder to support package description for app name if title is not specified 6.0.6 Include Microsoft_Business Foundation Test Libraries.app when importing test libraries (and tests)