From ac8e4d680397a2cb13999f151c54d65029df877a Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Tue, 22 Aug 2023 19:16:36 +0000 Subject: [PATCH] Adding missing directories needed for integration tests (#2181) * Adding missing directories needed for integration tests * Fixing dir names * removing unused dir creation * Adding back all projs * adding missing dirs * Fixing comments --- azure-pipelines/createBuildDirectories.sh | 42 ++++++----------------- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/azure-pipelines/createBuildDirectories.sh b/azure-pipelines/createBuildDirectories.sh index be7da3d8..86f9aee0 100755 --- a/azure-pipelines/createBuildDirectories.sh +++ b/azure-pipelines/createBuildDirectories.sh @@ -1,10 +1,13 @@ #!/usr/bin/env bash -# This script creates the necessary directories that are required -# for the the linux dotnet builds to work. This issue is caused due to a mismatch -# in the casing for the localization directories between all the projects and the -# nuget packages they are using. This not an issue in the windows because the dirs -# are case insensitive. +# This script creates the necessary directories required +# for Linux dotnet builds to function correctly. The issue arises due to a mismatch +# in the casing of the localization directories between different frameworks used in this repo. +# Net 472 creates localization directories like zh-Hans, pt-BR, zh-Hant, while netcore +# uses zh-hans, pt-br, zh-hant. This discrepancy causes build failures on Linux since the file system is +# case-sensitive. Consequently, when attempting to build using the netcore framework, it tries to copy files +# from projects using the net472 framework (e.g., zh-Hant), resulting in failures as the localization directory +# (present in netcore as zh-hant and not zh-Hant) cannot be found. # To fix the issue, we need to make sure all the projects @@ -39,35 +42,12 @@ dotnetProjectArray=( framework7="/bin/Debug/net7.0/" requiredLocDirectories=( - "cs" - "cs-CZ" - "de" - "de-DE" - "es" - "es-ES" - "fr" - "fr-FR" - "hu-HU" - "it" - "it-IT" - "ja" - "ja-JP" - "ko" - "ko-KR" - "nl-NL" - "pl" - "pl-PL" "pt-br" - "pt-PT" - "ru" - "ru-RU" - "sv-SE" - "tr" - "tr-TR" - "zh-HANS" + "pt-BR" "zh-hans" - "zh-HANT" + "zh-Hans" "zh-hant" + "zh-Hant" ) for i in "${dotnetProjectArray[@]}"