Skip to content

Commit 37cc0fd

Browse files
authored
Don't use -symbolsOnly flag in BC 27 (no longer supported) (#3927)
fixes microsoft/AL-Go#1713 --------- Co-authored-by: freddydk <freddydk@users.noreply.github.com>
1 parent 3095a32 commit 37cc0fd

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

AppHandling/Clean-BcContainerDatabase.ps1

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,14 @@ try {
8686
$SystemApplicationFile = ""
8787
}
8888
else {
89-
$SystemSymbolsFile = ":" + (Invoke-ScriptInBCContainer -containerName $containerName -scriptblock {
90-
(Get-Item "C:\Program Files\Microsoft Dynamics NAV\*\AL Development Environment\System.app").FullName
91-
})
89+
if ($platformversion.Major -lt 27) {
90+
$SystemSymbolsFile = ":" + (Invoke-ScriptInBCContainer -containerName $containerName -scriptblock {
91+
(Get-Item "C:\Program Files\Microsoft Dynamics NAV\*\AL Development Environment\System.app").FullName
92+
})
93+
}
94+
else {
95+
$SystemSymbolsFile = ""
96+
}
9297
$SystemApplicationFile = ":C:\Applications\System Application\Source\Microsoft_System Application.app"
9398
}
9499

@@ -170,8 +175,10 @@ try {
170175
Write-Host "Importing license file"
171176
Import-BcContainerLicense -containerName $containerName -licenseFile $licenseFile[0].FullName
172177

173-
Write-Host "Publishing System Symbols"
174-
Publish-BcContainerApp -containerName $containerName -appFile $SystemSymbolsFile -packageType SymbolsOnly -skipVerification -ignoreIfAppExists
178+
if ($SystemSymbolsFile) {
179+
Write-Host "Publishing System Symbols"
180+
Publish-BcContainerApp -containerName $containerName -appFile $SystemSymbolsFile -packageType SymbolsOnly -skipVerification -ignoreIfAppExists
181+
}
175182

176183
Write-Host "Creating Company"
177184
New-CompanyInBcContainer -containerName $containerName -companyName $companyName -evaluationCompany:$evaluationCompany

AppHandling/Compile-AppInNavContainer.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ try {
344344
if ($customConfig.ServerInstance) {
345345
$publishedApps = Invoke-ScriptInBcContainer -containerName $containerName -ScriptBlock { Param($tenant)
346346
Get-NavAppInfo -ServerInstance $ServerInstance -tenant $tenant
347-
Get-NavAppInfo -ServerInstance $ServerInstance -symbolsOnly
347+
Get-NavAppInfo -ServerInstance $ServerInstance -symbolsOnly -ErrorAction SilentlyContinue
348348
} -ArgumentList $tenant | Where-Object { $_ -isnot [System.String] }
349349
}
350350

ReleaseNotes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Issue 3886 Error on installing apps, app file path is not built correctly from u
44
AL-Go issue 1695 Fail early if app.json cannot be read
55
Issue with BC artifact 27.0.33668.0: app compilation fails because of analyzers not being loaded properly
66
Avoid using dotnet 9 for assemblyProbingPaths (for now)
7+
SymbolsOnly flag is no longer supported in BC27 (issue 1713 on AL-Go for GitHub)
78

89
6.1.4
910
Issue 3882 Run-AlPipeline with CompilerFolder and Container defined fails when running tests

0 commit comments

Comments
 (0)