CI: Fix running the workaround for `NuGet-Migrations` issue (#85692)
authorAnkit Jain <radical@gmail.com>
Fri, 26 May 2023 23:50:09 +0000 (19:50 -0400)
committerGitHub <noreply@github.com>
Fri, 26 May 2023 23:50:09 +0000 (19:50 -0400)
commit76e0313735289f1484d8a8c4263f5897bc6cd566
treed64b65200eaef896ee6bdb8f77d80e588cce6db8
parent813a46dd2501d8b1c09ffacdecae26313c6377e1
CI: Fix running the workaround for `NuGet-Migrations` issue (#85692)

* CI: Fix running the workaround for `NuGet-Migrations` issue

The workaround adds:

`(CONSOLE_TEMP_DIR=&quot;%24(mktemp -d)&quot; %3B &quot;$DOTNET_ROOT/dotnet&quot; new console -o &quot;$CONSOLE_TEMP_DIR&quot; %3B rm -rf &quot;$CONSOLE_TEMP_DIR&quot;) || true`

which uses `$DOTNET_ROOT/dotnet`. But this is set for `HelixPreCommand`
which runs *before* `DOTNET_ROOT` is set.

Instead, use `HelixCommandPrefixItem`.

* rename HelixCommandPrefixItem to HelixCommandPrefixEnvVarItem

* Fix in helixpublishwitharcade.proj also

* Add the workaround for legacy payloads also, which includes wasm runtime tests

* fix typo
src/libraries/sendtohelixhelp.proj
src/tests/Common/helixpublishwitharcade.proj