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
This commit is contained in:
Aasim Khan
2023-08-22 19:16:36 +00:00
committed by GitHub
parent 16c7e32356
commit ac8e4d6803

View File

@@ -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[@]}"