Skip to content

Instantly share code, notes, and snippets.

@Koubek
Last active November 8, 2017 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Koubek/b650e66ce4d7a0aa0ba3840523dda892 to your computer and use it in GitHub Desktop.
Save Koubek/b650e66ce4d7a0aa0ba3840523dda892 to your computer and use it in GitHub Desktop.
NAV on Docker - copy into "my" folder to override config - new setting for November release: EnableSymbolLoadingAtServerStartup
# Invoke default behavior
. (Join-Path $runPath $MyInvocation.MyCommand.Name)
Write-Host "Running Custom SetupConfiguration.ps1" -ForegroundColor Yellow
# Disable Buffered Inserts for DEV purposes only!!!
$customConfig.SelectSingleNode("//appSettings/add[@key='BufferedInsertEnabled']").Value = "false"
# Task scheduler activation.
$customConfig.SelectSingleNode("//appSettings/add[@key='EnableTaskScheduler']").Value = "true"
# Service Language changes.
# $customConfig.SelectSingleNode("//appSettings/add[@key='ServicesLanguage']").Value = "es-ES"
$customConfig.SelectSingleNode("//appSettings/add[@key='ServicesDefaultTimeZone']").Value = "Server Time Zone"
# Enable "Enable Symbol Loading at Server Startup" (valid since November release).
# More here: https://msdn.microsoft.com/en-us/dynamics-nav/developer/devenv-running-cside-and-al-side-by-side
$enableSymbolLoadingAtServerStartupKeyExists = ($customConfig.SelectSingleNode("//appSettings/add[@key='EnableSymbolLoadingAtServerStartup']") -ne $null)
if ($enableSymbolLoadingAtServerStartupKeyExists) {
$customConfig.SelectSingleNode("//appSettings/add[@key='EnableSymbolLoadingAtServerStartup']").Value = "true"
}
# Save configs.
$CustomConfig.Save($CustomConfigFile)
Write-Host "Custom SetupConfiguration.ps1 has been successfully finished." -ForegroundColor Yellow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment