Last active
November 8, 2017 18:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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