Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Vitek Karas 6618fe6156
Fix the batch file for running local dotnet on windows (#23541)
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).
2024-07-11 09:24:46 -05:00
Jonathan Pryor c92d44c68f
Add `dotnet-local` scripts to make using in tree dotnet easier. (#16461)
* 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.
2023-08-04 23:10:20 +00:00