microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
381 stars 243 forks source link

Unable to import .rapidstart file - 'Get-PackageInfoFromRapidStartFile' is not recognized #3048

Closed iedgeleybistech closed 1 year ago

iedgeleybistech commented 1 year ago

Describe the issue When calling UploadImportAndApply-ConfigPackageInBcContainer (in either a local context or in an Azure DevOps pipeline on a VM build using the same packer definition as the Microsoft build agents), the following error occurs:

operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.1\ConfigPackageHandling\UploadImportAndApply-ConfigPackageInBcContainer.ps1:44 char:32
+ ...              $packageInfo = Get-PackageInfoFromRapidStartFile $config ...
+                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-PackageInfoFromRapidStartFile:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException

Scripts used to create container and cause the issue

_____                           _   _               _   _            _       _     _           
|_   _|                         | | (_)             | | | |          (_)     | |   | |          
  | | _ __ ___  _ __   ___  _ __| |_ _ _ __   __ _  | | | | __ _ _ __ _  __ _| |__ | | ___  ___ 
  | || '_ ` _ \| '_ \ / _ \| '__| __| | '_ \ / _` | | | | |/ _` | '__| |/ _` | '_ \| |/ _ \/ __|
 _| || | | | | | |_) | (_) | |  | |_| | | | | (_| | \ \_/ / (_| | |  | | (_| | |_) | |  __/\__ \
 \___/_| |_| |_| .__/ \___/|_|   \__|_|_| |_|\__, |  \___/ \__,_|_|  |_|\__,_|_.__/|_|\___||___/
               | |                            __/ |                                             
               |_|                           |___/                                              
'@
. "$PSScriptRoot\Local-Variables.ps1"

Write-Host -ForegroundColor Yellow @'
_____           _        _ _ _                _____            _        _                   _    _      _                 
|_   _|         | |      | | (_)              / ____|          | |      (_)                 | |  | |    | |                
  | |  _ __  ___| |_ __ _| | |_ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __  | |__| | ___| |_ __   ___ _ __ 
  | | | '_ \/ __| __/ _` | | | | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__| |  __  |/ _ \ | '_ \ / _ \ '__|
 _| |_| | | \__ \ || (_| | | | | | | | (_| | | |___| (_) | | | | || (_| | | | | |  __/ |    | |  | |  __/ | |_) |  __/ |   
|_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|    |_|  |_|\___|_| .__/ \___|_|   
                                       __/ |                                                              | |              
                                      |___/                                                               |_|              
'@

# Install BcContainerHelper on the Agent
. (Join-Path $PSScriptRoot "Install-BcContainerHelper.ps1")

Write-Host -ForegroundColor Yellow @'
_____      _        _            _                             _   _  __           _   
|  __ \    | |      (_)          (_)                 /\        | | (_)/ _|         | |  
| |__) |___| |_ _ __ _  _____   ___ _ __   __ _     /  \   _ __| |_ _| |_ __ _  ___| |_ 
|  _  // _ \ __| '__| |/ _ \ \ / / | '_ \ / _` |   / /\ \ | '__| __| |  _/ _` |/ __| __|
| | \ \  __/ |_| |  | |  __/\ V /| | | | | (_| |  / ____ \| |  | |_| | || (_| | (__| |_ 
|_|  \_\___|\__|_|  |_|\___| \_/ |_|_| |_|\__, | /_/    \_\_|   \__|_|_| \__,_|\___|\__|
                                           __/ |                                        
                                          |___/                                         
'@

# Get a BC artifact and create a container
Write-Host "Retrieving appropriate artifact URL"
$artifactUrl = Get-BCArtifactUrl -type Sandbox -select 'current' -country "gb"
Write-Host "Artifact retrieved - $artifactUrl"

$pipelineParams = @{ 
  'pipelineName' = $pipelineName;
  'containerName' = $containerName;
  'artifact' = $artifactUrl;
  'installApps' = $packagesPath;
  'baseFolder' = $baseFolder;
  'installTestFramework' = $true;
  'assignPremiumPlan' = $true;
  'doNotRunTests' = $true; # Tests will be executed later in the script
  'keepContainer' = $true;
  'credential' = $credential;
  'enableTaskScheduler' = $true; # Required to install rapidstart packages
  'companyName' = $companyName;
}

Write-Host -ForegroundColor Yellow @'

 ______                     _   _               _____                          _ _____ _            _ _            
|  ____|                   | | (_)             |  __ \                   /\   | |  __ (_)          | (_)           
| |__  __  _____  ___ _   _| |_ _ _ __   __ _  | |__) |   _ _ __ ______ /  \  | | |__) | _ __   ___| |_ _ __   ___ 
|  __| \ \/ / _ \/ __| | | | __| | '_ \ / _` | |  _  / | | | '_ \______/ /\ \ | |  ___/ | '_ \ / _ \ | | '_ \ / _ \
| |____ >  <  __/ (__| |_| | |_| | | | | (_| | | | \ \ |_| | | | |    / ____ \| | |   | | |_) |  __/ | | | | |  __/
|______/_/\_\___|\___|\__,_|\__|_|_| |_|\__, | |_|  \_\__,_|_| |_|   /_/    \_\_|_|   |_| .__/ \___|_|_|_| |_|\___|
                                         __/ |                                          | |                        
                                        |___/                                           |_|                        
'@

Run-AlPipeline @pipelineParams

Write-Host -ForegroundColor Yellow @'
   _____            _        _                    _____                _           _ 
  / ____|          | |      (_)                  / ____|              | |         | |
 | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __  | |     _ __ ___  __ _| |_ ___  __| |
 | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__| | |    | '__/ _ \/ _` | __/ _ \/ _` |
 | |___| (_) | | | | || (_| | | | | |  __/ |    | |____| | |  __/ (_| | ||  __/ (_| |
  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|     \_____|_|  \___|\__,_|\__\___|\__,_|
'@

Write-Host -ForegroundColor Yellow @'
_____           _        _ _ _               _____             _     _     _             _   
|_   _|         | |      | | (_)             |  __ \           (_)   | |   | |           | |  
  | |  _ __  ___| |_ __ _| | |_ _ __   __ _  | |__) |__ _ _ __  _  __| |___| |_ __ _ _ __| |_ 
  | | | '_ \/ __| __/ _` | | | | '_ \ / _` | |  _  // _` | '_ \| |/ _` / __| __/ _` | '__| __|
 _| |_| | | \__ \ || (_| | | | | | | | (_| | | | \ \ (_| | |_) | | (_| \__ \ || (_| | |  | |_ 
|_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, | |_|  \_\__,_| .__/|_|\__,_|___/\__\__,_|_|   \__|
                                       __/ |             | |                                  
                                      |___/              |_|                                  
'@

# Establish a connection, needed when a new company is created
New-CompanyInBcContainer -containerName $ContainerName -companyName $companyName
Run-ConnectionTestToBcContainer -containerName $containername -companyName $companyName -credential $credential

$configParams = @{
  'containerName' = $containerName;
  'credential' = $credential;
  'companyName' = $companyName;
  'configPackage' = $configPackagePath;
}

UploadImportAndApply-ConfigPackageInBcContainer @configParams

Write-Host -ForegroundColor Yellow @'
_____             _        _                  ______                  _             
/  __ \           | |      (_)                 | ___ \                (_)            
| /  \/ ___  _ __ | |_ __ _ _ _ __   ___ _ __  | |_/ /   _ _ __  _ __  _ _ __   __ _ 
| |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__| |    / | | | '_ \| '_ \| | '_ \ / _` |
| \__/\ (_) | | | | || (_| | | | | |  __/ |    | |\ \ |_| | | | | | | | | | | | (_| |
 \____/\___/|_| |_|\__\__,_|_|_| |_|\___|_|    \_| \_\__,_|_| |_|_| |_|_|_| |_|\__, |
                                                                                __/ |
                                                                               |___/ 
'@

(Local-variables is uninteresting - but the relevant values:

$baseFolder = (Get-Item (Join-Path $PSScriptRoot "..")).FullName
$containerName = "bcserver"
$packagesPath = Join-Path $baseFolder "RequiredApps\"
$companyName = "somecompany"
$configPackagePath = Join-Path $baseFolder "ConfigurationPackages\TEMPLATE.rapidstart"

Full output of scripts

PS C:\Users\xxx\source\repos\xxx\scripts> .\Local-CreateContainer.ps1
_____                           _   _               _   _            _       _     _
|_   _|                         | | (_)             | | | |          (_)     | |   | |
  | | _ __ ___  _ __   ___  _ __| |_ _ _ __   __ _  | | | | __ _ _ __ _  __ _| |__ | | ___  ___
  | || '_ ` _ \| '_ \ / _ \| '__| __| | '_ \ / _` | | | | |/ _` | '__| |/ _` | '_ \| |/ _ \/ __|
 _| || | | | | | |_) | (_) | |  | |_| | | | | (_| | \ \_/ / (_| | |  | | (_| | |_) | |  __/\__ \
 \___/_| |_| |_| .__/ \___/|_|   \__|_|_| |_|\__, |  \___/ \__,_|_|  |_|\__,_|_.__/|_|\___||___/
               | |                            __/ |
               |_|                           |___/
Variables loaded
_____           _        _ _ _                _____            _        _                   _    _      _
|_   _|         | |      | | (_)              / ____|          | |      (_)                 | |  | |    | |
  | |  _ __  ___| |_ __ _| | |_ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __  | |__| | ___| |_ __   ___ _ __
  | | | '_ \/ __| __/ _` | | | | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__| |  __  |/ _ \ | '_ \ / _ \ '__|
 _| |_| | | \__ \ || (_| | | | | | | | (_| | | |___| (_) | | | | || (_| | | | | |  __/ |    | |  | |  __/ | |_) |  __/ |
|_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|    |_|  |_|\___|_| .__/ \___|_|
                                       __/ |                                                              | |
                                      |___/                                                               |_|
BcContainerHelper version 5.0.1
Setting TraefikUseDnsNameAsHostName = False
Setting SendExtendedTelemetryToMicrosoft = False
Setting baseUrl = https://businesscentral.dynamics.com
Setting PartnerTelemetryConnectionString =
Setting useSharedEncryptionKeys = True
Setting psSessionTimeout = 0
Setting addTryCatchToScriptBlock = True
Setting digestAlgorithm = SHA256
Setting defaultNewContainerParameters = @{Isolation=hyperv}
Setting ObjectIdForInternalUse = 88123
Setting killPsSessionProcess = False
Setting sandboxContainersAreMultitenantByDefault = True
Setting containerHelperFolder = C:\ProgramData\BcContainerHelper
Setting TreatWarningsAsErrors =
Setting apiBaseUrl = https://api.businesscentral.dynamics.com
Setting bcartifactsCacheFolder = c:\bcartifacts.cache
Setting TraefikImage = traefik:v1.7-windowsservercore-1809
Setting use7zipIfAvailable = True
Setting DOCKER_SCAN_SUGGEST = False
Setting genericImageName = mcr.microsoft.com/businesscentral:{0}
Setting mapCountryCode = @{ae=w1; ar=w1; bd=w1; dz=w1; cl=w1; pr=w1; eg=w1; fo=dk; gl=dk; id=w1; ke=w1; lb=w1; lk=w1; lu=w1; ma=w1; mm=w1; mt=w1; my=w1; ng=w1; qa=w1; sa=w1; sg=w1; tn=w1; ua=w1; za=w1}
Setting usePsSession = True
Setting timeStampServer = http://timestamp.digicert.com
Setting genericImageNameFilesOnly = mcr.microsoft.com/businesscentral:{0}-filesonly
Setting MicrosoftTelemetryConnectionString = InstrumentationKey=5b44407e-9750-4a07-abe9-30c3b853821b;IngestionEndpoint=https://southcentralus-0.in.applicationinsights.azure.com/
Setting hostHelperFolder = C:\ProgramData\BcContainerHelper
Setting useVolumeForMyFolder = False
Setting defaultContainerName = bcserver
BC.HelperFunctions emits usage statistics telemetry to Microsoft
_____      _        _            _                             _   _  __           _
|  __ \    | |      (_)          (_)                 /\        | | (_)/ _|         | |
| |__) |___| |_ _ __ _  _____   ___ _ __   __ _     /  \   _ __| |_ _| |_ __ _  ___| |_
|  _  // _ \ __| '__| |/ _ \ \ / / | '_ \ / _` |   / /\ \ | '__| __| |  _/ _` |/ __| __|
| | \ \  __/ |_| |  | |  __/\ V /| | | | | (_| |  / ____ \| |  | |_| | || (_| | (__| |_
|_|  \_\___|\__|_|  |_|\___| \_/ |_|_| |_|\__, | /_/    \_\_|   \__|_|_| \__,_|\___|\__|
                                           __/ |
                                          |___/
Retrieving appropriate artifact URL
Artifact retrieved - https://bcartifacts.azureedge.net/sandbox/22.1.55890.56627/gb

 ______                     _   _               _____                          _ _____ _            _ _
|  ____|                   | | (_)             |  __ \                   /\   | |  __ (_)          | (_)
| |__  __  _____  ___ _   _| |_ _ _ __   __ _  | |__) |   _ _ __ ______ /  \  | | |__) | _ __   ___| |_ _ __   ___
|  __| \ \/ / _ \/ __| | | | __| | '_ \ / _` | |  _  / | | | '_ \______/ /\ \ | |  ___/ | '_ \ / _ \ | | '_ \ / _ \
| |____ >  <  __/ (__| |_| | |_| | | | | (_| | | | \ \ |_| | | | |    / ____ \| | |   | | |_) |  __/ | | | | |  __/
|______/_/\_\___|\___|\__,_|\__|_|_| |_|\__, | |_|  \_\__,_|_| |_|   /_/    \_\_|_|   |_| .__/ \___|_|_|_| |_|\___|
                                         __/ |                                          | |
                                        |___/                                           |_|
WARNING: No app folders found
  _____                               _
 |  __ \                             | |
 | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___
 |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Pipeline name
Container name                  bcserver
Image name                      my
ArtifactUrl                     https://bcartifacts.azureedge.net/sandbox/22.1.55890.56627/gb
SasToken                        Not Specified
BcAuthContext                   Not Specified
Environment
ReUseContainer                  False
KeepContainer                   True
useCompilerFolder               False
artifactCachePath
useDevEndpoint                  False
Auth                            UserPassword
Credential                      Specified
CompanyName                     xxx
MemoryLimit                     8G
FailOn                          none
TreatTestFailuresAsWarnings     False
Enable Task Scheduler           True
Assign Premium Plan             True
Install Test Runner             False
Install Test Framework          True
Install Test Libraries          False
Install Perf. Toolkit           False
InstallOnlyReferencedApps       False
generateDependencyArtifact      False
CopySymbolsFromContainer        False
enableCodeCop                   False
enableAppSourceCop              False
enableUICop                     False
enablePerTenantExtensionCop     False
doNotPerformUpgrade             False
doNotPublishApps                False
uninstallRemovedApps            False
escapeFromCops                  False
doNotBuildTests                 False
doNotRunTests                   True
doNotRunBcptTests               False
useDefaultAppSourceRuleSet      False
rulesetFile
azureDevOps                     False
gitLab                          False
gitHubActions                   False
vsixFile
License file                    Not specified
CodeSignCertPfxFile             Not specified
CodeSignCertPfxPassword         Not specified
CodeSignCertIsSelfSigned        False
KeyVaultCertPfxFile             Not specified
KeyVaultCertPfxPassword         Not specified
KeyVaultClientId
BuildOutputFile
ContainerEventLogFile
TestResultsFile                 C:\Users\xxx\source\repos\xxx\TestResults.xml
BcptTestResultsFile             C:\Users\xxx\source\repos\xxx\bcptTestResults.json
TestResultsFormat               JUnit
AdditionalCountries
PackagesFolder                  C:\Users\xxx\source\repos\xxx\.packages
OutputFolder                    C:\Users\xxx\source\repos\xxx\.output
BuildArtifactFolder
CreateRuntimePackages           False
AppVersion
AppBuild                        0
AppRevision                     0
Install Apps
- C:\Users\xxx\source\repos\xxx\RequiredApps\
Install Test Apps
- None
Previous Apps
- None
Application folders
- None
Test application folders
- C:\Users\xxx\source\repos\xxx\test
BCPT Test application folders
- None
BCPT Test suites
- None
Custom CodeCops
- None

  _____       _ _ _                                          _        _
 |  __ \     | | (_)                                        (_)      (_)
 | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___
 |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
 | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
 |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
                           __/ |   __/ |                                                 __/ |
                          |___/   |___/                                                 |___/

INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
Pulling mcr.microsoft.com/businesscentral:10.0.19041.1415

Pulling generic image took 2 seconds

   _____                _   _                               _        _
  / ____|              | | (_)                             | |      (_)
 | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __
 | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
 | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |
  \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|
                                     __/ |
                                    |___/

Creaing docker container
Default parameter Isolation = hyperv
BcContainerHelper is version 5.0.1
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Enterprise - 10.0.19045.2965
Docker Client Version is 20.10.16
Docker Server Version is 20.10.16
Removing entries from hosts
Removing bcserver from container hosts file
Removing bcserver-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver
Fetching all docker images
Fetching all docker volumes
ArtifactUrl and ImageName specified
Image my:sandbox-22.1.55890.56627-gb-mt already exists
Using image my:sandbox-22.1.55890.56627-gb-mt
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 22.1.55890.56627
Platform: 22.0.56516.0
Generic Tag: 1.0.2.14
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19045.2965 (22H2)
Using hyperv isolation
Using locale en-GB
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Additional Parameters:
--volume "C:\Users\xxx\source\repos\xxx:c:\sources"
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
- AdditionalOutput.ps1
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcserver from image my:sandbox-22.1.55890.56627-gb-mt
eba4430adda6fe78edeb6a1ea69f52d4f752b1f5d0ab352f128c5cc983b48e20
Waiting for container bcserver to be ready
Initializing...
Setting host.containerhelper.internal to 192.168.16.1 in container hosts file
Starting Container
Hostname is bcserver
PublicDnsName is bcserver
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint xxx
DNS identity bcserver
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to True
Starting Service Tier                                                                                                                                         Registering event sources                                                                                                                                     Creating DotNetCore Web Server Instance                                                                                                                       Using application pool name: BC                                                                                                                               Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
Enabling Financials User Experience
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating admin as SQL User and add to sysadmin
Creating SUPER user
Assign Premium plan for ADMIN
Container IP Address: 192.168.17.60
Container Hostname  : bcserver
Container Dns Name  : bcserver
Web Client          : http://bcserver/BC/?tenant=default
Dev. Server         : http://bcserver
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting bcserver to 192.168.17.60 in host hosts file
Setting bcserver-default to 192.168.17.60 in host hosts file
Setting bcserver-default to 192.168.17.60 in container hosts file

Files:
http://bcserver:8080/ALLanguage.vsix

WARNING: You are running a container which is 431 days old.
Microsoft recommends that you always run the latest version of our containers.

Container Total Physical Memory is 8.5Gb
Container Free Physical Memory is 5.9Gb

Initialization took 68 seconds
Ready for connections!
Reading CustomSettings.config from bcserver
Creating Desktop Shortcuts for bcserver
Cleanup old dotnet core assemblies
Container bcserver successfully created

Use:
Get-BcContainerEventLog -containerName bcserver to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName bcserver to get debug information about the container
Enter-BcContainer -containerName bcserver to open a PowerShell prompt inside the container
Remove-BcContainer -containerName bcserver to remove the container again
docker logs bcserver to retrieve information about URL's again

Creating container took 86 seconds

 _____                _       _                   _                           _                 _
|  __ \              | |     (_)                 | |                         | |               (_)
| |__) |___ ___  ___ | |_   ___ _ __   __ _    __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _  ___ ___
|  _  // _ \ __|/ _ \| \ \ / / | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \ __|
| | \ \  __\__ \ (_) | |\ V /| | | | | (_| | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |  __\__ \
|_|  \_\___|___/\___/|_| \_/ |_|_| |_|\__, |  \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___|___/
                                       __/ |            | |
                                      |___/             |_|

Sorted App folders
External dependencies
- None
Sorted TestApp folders
- C:\Users\xxx\source\repos\xxx\test
External TestApp dependencies
- 23de40a6-dfe8-4f80-80db-d70f83ce8caf:Microsoft_Test Runner_17.0.0.0.app
- dd0be2ea-f733-4d65-bb34-a28f4624fb14:Microsoft_Library Assert_19.2.0.0.app
- xxx:xxx.app
- xxx:xxx.app
- xxx:xxx.app
- xxx:xxx.app
- 437dbf0e-84ff-417a-965d-ed2bb9650972:Microsoft_Base Application_19.0.0.0.app
- 63ca2fa4-4f03-4f2b-a480-172fef340d3f:Microsoft_System Application_19.0.0.0.app

  _____           _        _ _ _
 |_   _|         | |      | | (_)
   | |  _ __  ___| |_ __ _| | |_ _ __   __ _    __ _ _ __  _ __  ___
   | | | '_ \/ __| __/ _` | | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
  _| |_| | | \__ \ |_ (_| | | | | | | | (_| | | (_| | |_) | |_) \__ \
 |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
                                        __/ |       | |   | |
                                       |___/        |_|   |_|

Publishing C:\ProgramData\BcContainerHelper\Extensions\bcserver\xxx\xxx.app
Synchronizing xxx on tenant default
Installing xxx on tenant default
App xxx.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bcserver\xxx\xxx.app
Synchronizing xxx on tenant default
Installing xxx on tenant default
App xxx.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bcserver\xxx\xxx.app
Synchronizing xxx on tenant default
Installing xxx on tenant default
App xxx.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bcserver\xxx\xxx.app
Synchronizing xxx on tenant default
Installing xxx on tenant default
App xxx.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bcserver\xxx\xxx.app
Synchronizing xxx on tenant default
Installing xxx on tenant default
App xxx.app successfully published

Installing apps took 29 seconds

   _____                      _ _ _
  / ____|                    (_) (_)
 | |     ___  _ __ ___  _ __  _| |_ _ __   __ _    __ _ _ __  _ __  ___
 | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
 | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \
  \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
                       | |                 __/ |       | |   | |
                       |_|                |___/        |_|   |_|

  _____                            _   _               _            _     _              _ _    _ _
 |_   _|                          | | (_)             | |          | |   | |            | | |  (_) |
   | |  _ __ ___  _ __   ___  _ __| |_ _ _ __   __ _  | |_ ___  ___| |_  | |_ ___   ___ | | | ___| |_
   | | | '_ ` _ \| '_ \ / _ \| '__| __| | '_ \ / _` | | __/ _ \/ __| __| | __/ _ \ / _ \| | |/ / | __|
  _| |_| | | | | | |_) | (_) | |  | |_| | | | | (_| | | ||  __/\__ \ |_  | || (_) | (_) | |   <| | |_
 |_____|_| |_| |_| .__/ \___/|_|   \__|_|_| |_|\__, |  \__\___||___/\__|  \__\___/ \___/|_|_|\_\_|\__|
                 | |                            __/ |
                 |_|                           |___/
Synchronizing Permissions Mock on default
App successfully synchronized
Installing Permissions Mock on default
App successfully installed
Synchronizing Test Runner on default
App successfully synchronized
Installing Test Runner on default
App successfully installed
Synchronizing Any on default
App successfully synchronized
Installing Any on default
App successfully installed
Synchronizing Library Assert on default
App successfully synchronized
Installing Library Assert on default
App successfully installed
Skipping app 'C:\Applications.GB\Microsoft_Permissions Mock_22.1.55890.56627.app' as it is already installed
Synchronizing Library Variable Storage on default
App successfully synchronized
Installing Library Variable Storage on default
App successfully installed
TestToolkit successfully imported

Importing Test Toolkit took 2 seconds
   _____                      _ _ _               _           _
  / ____|                    (_) (_)             | |         | |
 | |     ___  _ __ ___  _ __  _| |_ _ __   __ _  | |_ ___ ___| |_    __ _ _ __  _ __  ___
 | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` | | __/ _ \ __| __|  / _` | '_ \| '_ \/ __|
 | |____ (_) | | | | | | |_) | | | | | | | (_| | | |_  __\__ \ |_  | (_| | |_) | |_) \__ \
  \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__\___|___/\__|  \__,_| .__/| .__/|___/
                       | |                 __/ |                         | |   | |
                       |_|                |___/                          |_|   |_|

Compiling C:\Users\xxx\source\repos\xxx\test
Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\220\Service to assemblyProbingPath
Removing dotnet Framework Assemblies
Using Symbols Folder: C:\Users\xxx\source\repos\xxx\.packages
Processing dependency Microsoft_Application_19.0.0.0 ()
Downloading symbols: Microsoft_Application_22.1.55890.56627.app
Url : http://192.168.17.60:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=19.0.0.0&tenant=default
Downloading using WebClient
Adding dependency to System Application from Microsoft
Adding dependency to Base Application from Microsoft
Processing dependency Microsoft_System_19.0.0.0 ()
Downloading symbols: Microsoft_System_22.0.56516.0.app
Url : http://192.168.17.60:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=19.0.0.0&tenant=default
Downloading using WebClient
Processing dependency Microsoft_Test Runner_17.0.0.0 (23de40a6-dfe8-4f80-80db-d70f83ce8caf)
Downloading symbols: Microsoft_Test Runner_22.1.55890.56627.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=23de40a6-dfe8-4f80-80db-d70f83ce8caf&versionText=17.0.0.0&tenant=default
Downloading using WebClient
Processing dependency Microsoft_Library Assert_19.2.0.0 (dd0be2ea-f733-4d65-bb34-a28f4624fb14)
Downloading symbols: Microsoft_Library Assert_22.1.55890.56627.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=dd0be2ea-f733-4d65-bb34-a28f4624fb14&versionText=19.2.0.0&tenant=default
Downloading using WebClient
Processing dependency xxx
Downloading symbols: xxx.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=xxx&versionText=19.0.0.0&tenant=default
Downloading using WebClient
Processing dependency xxx
Downloading symbols: xxx.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=xxx&versionText=19.0.0.0&tenant=default
Downloading using WebClient
Processing dependency xxxxxx
Downloading symbols: xxx.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=xxx&versionText=18.0.0.0&tenant=default
Downloading using WebClient
Processing dependency xxx (xxx)
Downloading symbols: xxx.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=8a69e3a8-8fd6-4e3d-9004-b8f880ca675c&versionText=18.0.0.0&tenant=default
Downloading using WebClient
Processing dependency Microsoft_System Application_22.1.0.0 (63ca2fa4-4f03-4f2b-a480-172fef340d3f)
Downloading symbols: Microsoft_System Application_22.1.55890.56627.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=63ca2fa4-4f03-4f2b-a480-172fef340d3f&versionText=22.1.0.0&tenant=default
Downloading using WebClient
Processing dependency Microsoft_Base Application_22.1.0.0 (437dbf0e-84ff-417a-965d-ed2bb9650972)
Downloading symbols: Microsoft_Base Application_22.1.55890.56627.app
Url : http://192.168.17.60:7049/BC/dev/packages?appId=437dbf0e-84ff-417a-965d-ed2bb9650972&versionText=22.1.0.0&tenant=default
Downloading using WebClient
Compiling...
.\alc.exe /project:"c:\sources\test" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\xxx.app" /assemblyprobingpaths:"C:\Program Files\dotnet\shared","C:\ProgramData\BcContainerHelper\Extensions\bcserver\.netPackages\Service"
Microsoft (R) AL Compiler version 11.0.12.13837
Copyright (C) Microsoft Corporation. All rights reserved

Compilation started for project 'xxx' containing '8' files at '14:04:07.000'.

Compilation ended at '14:04:11.312'.

C:\Users\xxx\source\repos\xxx\.output\xxx successfully created in 45 seconds
xxx.app copied to C:\Users\xxx\source\repos\xxx\.packages

Compiling apps, test apps and importing test toolkit took 68 seconds
  _____       _     _ _     _     _
 |  __ \     | |   | (_)   | |   (_)
 | |__) |   _| |__ | |_ ___| |__  _ _ __   __ _    __ _ _ __  _ __  ___
 |  ___/ | | | '_ \| | / __| '_ \| | '_ \ / _` |  / _` | '_ \| '_ \/ __|
 | |   | |_| | |_) | | \__ \ | | | | | | | (_| | | (_| | |_) | |_) \__ \
 |_|    \__,_|_.__/|_|_|___/_| |_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
                                           __/ |       | |   | |
                                          |___/        |_|   |_|
Publishing C:\ProgramData\BcContainerHelper\Extensions\bcserver\5013cfb7-5bd3-4c62-b586-1ab0935df7e3\xxx.app
Synchronizing xxx on tenant default
Installing xxx on tenant default
App xxx.app successfully published

Publishing apps took 3 seconds

AL Pipeline finished in 189 seconds
   _____            _        _                    _____                _           _
  / ____|          | |      (_)                  / ____|              | |         | |
 | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __  | |     _ __ ___  __ _| |_ ___  __| |
 | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__| | |    | '__/ _ \/ _` | __/ _ \/ _` |
 | |___| (_) | | | | || (_| | | | | |  __/ |    | |____| | |  __/ (_| | ||  __/ (_| |
  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|     \_____|_|  \___|\__,_|\__\___|\__,_|
_____           _        _ _ _               _____             _     _     _             _
|_   _|         | |      | | (_)             |  __ \           (_)   | |   | |           | |
  | |  _ __  ___| |_ __ _| | |_ _ __   __ _  | |__) |__ _ _ __  _  __| |___| |_ __ _ _ __| |_
  | | | '_ \/ __| __/ _` | | | | '_ \ / _` | |  _  // _` | '_ \| |/ _` / __| __/ _` | '__| __|
 _| |_| | | \__ \ || (_| | | | | | | | (_| | | | \ \ (_| | |_) | | (_| \__ \ || (_| | |  | |_
|_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, | |_|  \_\__,_| .__/|_|\__,_|___/\__\__,_|_|   \__|
                                       __/ |             | |
                                      |___/              |_|
Creating company xxx in default
Company successfully created
Extension Management opened successfully
Extension Management successfully closed
UploadImportAndApply-ConfigPackageInBcContainer Telemetry Correlation Id: 1e6d243c-fc65-4d40-945a-3e495d40a749
Get-PackageInfoFromRapidStartFile : The term 'Get-PackageInfoFromRapidStartFile' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.1\ConfigPackageHandling\UploadImportAndApply-ConfigPackageInBcContainer.ps1:44 char:32
+ ...              $packageInfo = Get-PackageInfoFromRapidStartFile $config ...
+                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-PackageInfoFromRapidStartFile:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException

Additional context

Drakonian commented 1 year ago

Same problem with 5.0 currently using the stable version 4.0.16

freddydk commented 1 year ago

Will ship 5.0.2 with a fix for this in a few hours.

Drakonian commented 1 year ago

Thank you so much for your hard work!

freddydk commented 1 year ago

Shipped in 5.0.2