Skip to content

Commit dd40727

Browse files
authored
issue #3349 (#3356)
Fixes #3349 Co-authored-by: freddydk <[email protected]>
1 parent 4f6249a commit dd40727

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

HelperFunctions.ps1

+5-2
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,13 @@ function CopyAppFilesToFolder {
555555
$appFile = $_
556556
if ($appFile -like "http://*" -or $appFile -like "https://*") {
557557
$appUrl = $appFile
558-
$appFile = Join-Path ([System.IO.Path]::GetTempPath()) ([Guid]::NewGuid().ToString())
558+
$appFileFolder = Join-Path ([System.IO.Path]::GetTempPath()) ([Guid]::NewGuid().ToString())
559+
$appFile = Join-Path $appFileFolder ([Uri]::UnescapeDataString([System.IO.Path]::GetFileName($appUrl.Split('?')[0])))
559560
Download-File -sourceUrl $appUrl -destinationFile $appFile
560561
CopyAppFilesToFolder -appFile $appFile -folder $folder
561-
Remove-Item -Path $appFile -Force
562+
if (Test-Path $appFileFolder) {
563+
Remove-Item -Path $appFileFolder -Force -Recurse
564+
}
562565
}
563566
elseif (Test-Path $appFile -PathType Container) {
564567
get-childitem $appFile -Filter '*.app' -Recurse | ForEach-Object {

ReleaseNotes.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
6.0.7
22
Issue 3347 Download-BcNuGetPackageToFolder to support package description for app name if title is not specified
33
Support dependency version templates on NuGet packages
4+
Issue 3349 NuGet package files section name is wrong when using azure blob storage direct download url
45

56
6.0.6
67
Include Microsoft_Business Foundation Test Libraries.app when importing test libraries (and tests)

0 commit comments

Comments
 (0)