diff --git a/Readme.md b/Readme.md index 5bd1c5474..a3ae1dbd1 100644 --- a/Readme.md +++ b/Readme.md @@ -383,7 +383,7 @@ The Bootstrapper tooling will generate two folders `_compressed_gz` and `_compre When building an application, place [the following file](src/Uno.Wasm.Sample/wwwroot/web.config) in the `wwwroot` folder to automatically enable the use of pre-compressed files. The parameters for the compression are as follows: -- `WasmShellGenerateCompressedFiles` which can be `true` of `false`. This property is ignored when building `MonoRuntimeDebuggerEnabled` is set to `true`. +- `WasmShellGenerateCompressedFiles` which can be `true` or `false`. This property is ignored when building `MonoRuntimeDebuggerEnabled` is set to `true`. - `WasmShellCompressedExtension` is an item group which specifies which files to compress. By default `wasm`, `clr`, `js`, `css` and `html files are pre-compressed. More files can be added as follows: ```xml diff --git a/src/Uno.Wasm.Bootstrap/ShellTask.cs b/src/Uno.Wasm.Bootstrap/ShellTask.cs index 5d850318f..29d27e9cf 100644 --- a/src/Uno.Wasm.Bootstrap/ShellTask.cs +++ b/src/Uno.Wasm.Bootstrap/ShellTask.cs @@ -416,7 +416,7 @@ as the BrotliStream must be closed in order to signal that no more blocks are be private (int exitCode, string output, string error) RunProcess(string executable, string parameters, string? workingDirectory = null) { - if (IsWSLRequired) + if (IsWSLRequired && !ForceDisableWSL) { var unixPath = AlignPath(executable, escape: true); var monoPath = executable.EndsWith(".exe") ? "mono" : ""; @@ -485,7 +485,7 @@ as the BrotliStream must be closed in order to signal that no more blocks are be private string AlignPath(string path, bool escape = false) { - var output = IsWSLRequired ? $"`wslpath \"{path.Replace("\\\\?\\", "")}\"`" : path; + var output = IsWSLRequired && !ForceDisableWSL ? $"`wslpath \"{path.Replace("\\\\?\\", "")}\"`" : path; if (escape) {