Skip to content

Commit 4b5caab

Browse files
authored
Small bug fixes (#3480)
Bump version to 6.0.16 Fixes #3477 Fixes #3478 --------- Co-authored-by: freddydk <[email protected]>
1 parent 65337fc commit 4b5caab

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

HelperFunctions.ps1

+5-4
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ function CopyAppFilesToFolder {
528528
}
529529
}
530530
elseif (Test-Path $appFile -PathType Container) {
531-
Get-ChildItem $appFile -Recurse | ForEach-Object {
531+
Get-ChildItem $appFile -Recurse -File | ForEach-Object {
532532
CopyAppFilesToFolder -appFile $_.FullName -folder $folder
533533
}
534534
}
@@ -553,10 +553,11 @@ function CopyAppFilesToFolder {
553553
if ($copied) { Remove-Item -Path $appFile -Force }
554554
}
555555
}
556-
else {
557-
$destFile = Join-Path $folder "$([System.IO.Path]::GetFileNameWithoutExtension($appFile)).app"
556+
elseif ($appFile -like "*.app") {
557+
$destFileName = [System.IO.Path]::GetFileName($appFile)
558+
$destFile = Join-Path $folder $destFileName
558559
if (Test-Path $destFile) {
559-
Write-Host -ForegroundColor Yellow "::WARNING::$([System.IO.Path]::GetFileName($destFile)) already exists, it looks like you have multiple app files with the same name. App filenames must be unique."
560+
Write-Host -ForegroundColor Yellow "::WARNING::$destFileName already exists, it looks like you have multiple app files with the same name. App filenames must be unique."
560561
}
561562
Copy-Item -Path $appFile -Destination $destFile -Force
562563
$destFile

ReleaseNotes.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
6.0.16
2+
Issue 3477 Regression: Error: App filenames must be unique
3+
Issue 3478 New-bccontainer fails on BC24 using option -UseNewDatabase
4+
15
6.0.15
26
Issue 3467 Can't create a backup of a container with the Backup-BCContainerDatabases commandlet
37
Use PowerShell 5 in places where invoke-sqlcmd or other functions from the SqlServer PowerShell module are used

TenantHandling/New-NavContainerTenant.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ try {
4646
throw "You cannot add a tenant called tenant"
4747
}
4848

49-
Invoke-ScriptInBcContainer -containerName $containerName -ScriptBlock { Param($containerName, $tenantId, [PSCredential]$sqlCredential, $sourceDatabase, $destinationDatabase, $alternateId, $doNotCopyDatabase, $allowAppDatabaseWrite, $applicationInsightsKey)
49+
Invoke-ScriptInBcContainer -containerName $containerName -usePwsh:$false -ScriptBlock { Param($containerName, $tenantId, [PSCredential]$sqlCredential, $sourceDatabase, $destinationDatabase, $alternateId, $doNotCopyDatabase, $allowAppDatabaseWrite, $applicationInsightsKey)
5050

5151
$customConfigFile = Join-Path (Get-Item "C:\Program Files\Microsoft Dynamics NAV\*\Service").FullName "CustomSettings.config"
5252
[xml]$customConfig = [System.IO.File]::ReadAllText($customConfigFile)

Version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.15-dev
1+
6.0.16-dev

0 commit comments

Comments
 (0)