Frequently Asked Questions
LS Central Project
How to specify a Data Director addin version?
By default, the project scripts are set to update the Data Director addin to the latest version each time LS Central is updated. You may want to have more control and specify a target version. Follow these steps and modify your project files to allow such configuration.
Add a new property called DdVersion with the target Data Director version to Project.json and save the file.
"DdVersion": "3.2.112"
Edit GetLsCentralPackages.ps1, find both ls-dd-server-addin and ls-dd-service and set version to
$Config.DdVersion
and save the file:@{ Id = 'ls-dd-server-addin'; Version = $Config.DdVersion } @{ Id = 'ls-dd-service'; Version = $Config.DdVersion }
Run GetLsCentralPackages.ps1:
PS C:\LS Retail\My Project> .\GetLsCentralPackages.ps1
Edit NewBundlePackage.ps1:
Find ls-dd-server-addin and set the version to
$Config.DdVersion
:@{ Id = 'ls-dd-server-addin'; Version = $Config.DdVersion }
- Increase the bundle version.
- Save the file
Run NewBundlePackage.ps1 and import the file:
PS C:\LS Retail\My Project> .\NewBundlePackage.ps1 -Import
From now on, you can update the Data Director version with the following steps:
- Edit Project.json and set DdVersion to your target version.
- Run
GetLsCentralPackages.ps1
. - Edit NewBundlePackage.ps1 and increment the bundle version.
- Run
NewBundlePackage.ps1 -Import
. - You will have a new bundle version with the Data Director addin at the specified version.