Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Doulik <radek.doulik@gmail.com>2021-08-14 15:15:56 +0300
committerGitHub <noreply@github.com>2021-08-14 15:15:56 +0300
commitd95758f84251d12a6ec57a83afeb60a29f2e2deb (patch)
tree21bbbfe3bf90cb6f5756c01a6b93900d0a8ec272 /eng/build.ps1
parentb2fc310998f1d25ed01102a47366f89b5c1c9e9c (diff)
[wasm] Make sure the TargetOS is capitalized (#54927)
Fixes: https://github.com/dotnet/runtime/issues/54926 The $(TargetOS) is used in $(TargetFrameworks) and is case sensitive. Make sure it is capitalized for Browser, so that build.cmd works when used like: ./build.cmd -bl -os browser -subset libs It fixes build errors like: C:\r\src\libraries\shims\manual\System.forwards.cs(8,88): error CS0234: The type or namespace name 'ZLibException' does not exist in the namespace 'System.IO.Compression' (are you missing an assembly reference?) [C:\r\src\libraries\shims\manual\System.csproj] C:\r\src\libraries\shims\manual\System.forwards.cs(9,77): error CS0234: The type or namespace name 'CookieVariant' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) [C:\r\src\libraries\shims\manual\System.csproj] C:\r\src\libraries\shims\manual\System.forwards.cs(10,77): error CS0234: The type or namespace name 'PathList' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) [C:\r\src\libraries\shims\manual\System.csproj]
Diffstat (limited to 'eng/build.ps1')
-rw-r--r--eng/build.ps15
1 files changed, 5 insertions, 0 deletions
diff --git a/eng/build.ps1 b/eng/build.ps1
index 5980695e3a2..af253dfb3db 100644
--- a/eng/build.ps1
+++ b/eng/build.ps1
@@ -223,6 +223,11 @@ if (!$actionPassedIn) {
$arguments = "-restore -build"
}
+if ($PSBoundParameters.ContainsKey('os') -and $PSBoundParameters['os'] -eq "Browser") {
+ # make sure it is capitalized
+ $PSBoundParameters['os'] = "Browser"
+}
+
foreach ($argument in $PSBoundParameters.Keys)
{
switch($argument)