Skip to content

Commit

Permalink
issue 3347 (#3348)
Browse files Browse the repository at this point in the history
Fixes #3347

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Feb 21, 2024
1 parent b4b554d commit 256d0e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion NuGet/Download-BcNuGetPackageToFolder.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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])"
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 256d0e6

Please sign in to comment.