Skip to content

Commit eb902f3

Browse files
committed
fix: add possible case names for tfm
1 parent 52d896a commit eb902f3

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

UnoCheck/TargetPlatformHelper.cs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ public static TargetPlatform GetTargetPlatformsFromFlags(string[]? targetPlatfor
2424

2525
return output;
2626
}
27-
/// <summary>
28-
/// Converts the string provided uno-check input argument to the corresponding <see cref="TargetPlatform"/>
29-
/// </summary>
30-
/// <param name="flag">The user-provided argument as <see langword="string"/></param>
31-
/// <returns>The <see cref="TargetPlatform"/> from the <paramref name="flag"/></returns>
27+
/// <summary>
28+
/// Converts the string provided uno-check input argument to the corresponding <see cref="TargetPlatform"/>
29+
/// </summary>
30+
/// <param name="flag">The user-provided argument as <see langword="string"/></param>
31+
/// <returns>The <see cref="TargetPlatform"/> from the <paramref name="flag"/></returns>
3232
public static TargetPlatform GetTargetPlatformFromFlag(string flag)
3333
{
3434
switch (flag.ToLowerInvariant())
3535
{
36-
case "web":
36+
case "web":
3737
case "webassembly":
3838
case "wasm":
3939
return TargetPlatform.WebAssembly;
@@ -46,14 +46,16 @@ public static TargetPlatform GetTargetPlatformFromFlag(string flag)
4646
return TargetPlatform.Android;
4747
case "macos":
4848
return TargetPlatform.macOS;
49-
case "winappsdk":
50-
case "wasdk":
49+
case "winsdk":
50+
case "winappsdk":
51+
case "wasdk":
5152
return TargetPlatform.WinAppSDK;
52-
case "windows":
53-
case "win32desktop":
54-
case "win32":
55-
return TargetPlatform.Windows;
56-
case "skiadesktop":
53+
case "windows":
54+
case "win32desktop":
55+
case "win32":
56+
return TargetPlatform.Windows;
57+
case "desktop":
58+
case "skiadesktop":
5759
case "skia":
5860
return TargetPlatform.SkiaDesktop;
5961
case "linux":

doc/configuration/configuring-uno-check.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Supported target platforms and their `--target` values:
4242
| iOS | `ios` |
4343
| Android | `android`, `droid` |
4444
| macOS | `macos` |
45-
| SkiaDesktop | `skiadesktop`, `skia`, `linux` |
46-
| WinAppSDK | `winappsdk`, `wasdk` |
45+
| SkiaDesktop | `skiadesktop`, `skia`, `linux`, `desktop` |
46+
| WinAppSDK | `winappsdk`, `wasdk` , `winsdk` |
4747
| Windows | `windows`, `win32desktop`, `win32` |
4848
| All Platforms | `all` |
4949

@@ -112,7 +112,6 @@ uno-check --pre
112112

113113
# [**pre-major**](#tab/pre-major)
114114

115-
116115
This generally uses the preview builds of the next major version of .NET available.
117116

118117
The manifest is hosted by default here: [uno.ui-preview-major.manifest.json](https://raw.githubusercontent.com/unoplatform/uno.check/main/manifests/uno.ui-preview-major.manifest.json)

0 commit comments

Comments
 (0)