Hi
I use GitLab CI/CD in order to build the product version of an ArcGIS Pro AddIn.
Is It possible to change de DAML Date automatically in order to set the Date as the builing Date ?
Best Regards
Thanks
Effectively, a small powershell script could do the job :
$xmlPath = "Config.daml" $xml = Get-Content -Path $xmlPath $currentDate = Get-Date -Format "M/d/yyyy h:mm:ss tt" $xml = $xml -replace '<Date>.*?</Date>', "<Date>$currentDate</Date>" Set-Content -Path $xmlPath -Value $xml
Hi,
I have written small executable which changes date and version of add-in. Argument of executable is project path. Executable searches catalog for daml file and makes changes. You can set in project settings Pre-build event:
"..\UpdateAddInDate\bin\Release\UpdateAddInDate.exe" $(ProjectPath)
UpdateAddInDate.exe is my executable. Project of executable is located in the same solution with add-in
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.