The problem was that the body of the IF statement is considered one "line" and all environment variables are replaced before that "line" is executed. So set commands don't have an effect on the rest of the code in that IF.
Changed this to use `enabledelayedexpansion` and the `!!` syntax which makes it work the way would would expect.
One additional fix, enclose the set commands in quotation marks. This fixes a bug where if the `PATH` contains a parenthesis, the script would just plain fail (which can happen if one has x86 programs in their PATH).
* Add `dotnet-local` scripts to make using in tree dotnet easier.
Using `dotnet` may require setting `%PATH%` to prefer
`bin\dotnet\dotnet` over any other `dotnet` in `%PATH%`.
Usage:
# Unix
path/to/maui/dotnet-local.sh build App.sln
rem Windows
path\to\maui\dotnet-local.cmd build App.sln
If MAUI hasn't been built yet, an error message stating that
`build.sh` or `build.ps1` should be executed is printed.
* Update error message when MAUI hasn't been built yet.
* Update docs.