[wasm] Make sure the TargetOS is capitalized (#54927)
authorRadek Doulik <radek.doulik@gmail.com>
Sat, 14 Aug 2021 12:15:56 +0000 (14:15 +0200)
committerGitHub <noreply@github.com>
Sat, 14 Aug 2021 12:15:56 +0000 (14:15 +0200)
commitd95758f84251d12a6ec57a83afeb60a29f2e2deb
tree21bbbfe3bf90cb6f5756c01a6b93900d0a8ec272
parentb2fc310998f1d25ed01102a47366f89b5c1c9e9c
[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]
eng/build.ps1