Skip to content

Commit d1a6c7a

Browse files
committed
Update README.md
1 parent a897c85 commit d1a6c7a

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

src/package-avalonia-apphost/README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Apphost and single-file host templates for Avalonia, prelinked against SkiaSharp and HarfBuzz native libraries, for **.NET 10.0** on Windows and Linux.
44

5-
This package replaces the SDK apphost templates for supported Avalonia publish targets and suppresses redundant SkiaSharp/HarfBuzz native runtime copy by default.
5+
This package replaces the SDK apphost templates for supported Avalonia publish targets and removes SkiaSharp/HarfBuzz native runtime files from publish output by default.
66

77
Supported template RIDs:
88

@@ -49,17 +49,29 @@ When a matching template exists for the consuming project's `TargetFramework` an
4949
- injects the Avalonia native-library resolver module initializer
5050
- suppresses SkiaSharp/HarfBuzz native runtime copy
5151

52-
By default this package removes these native runtime files from build/publish output when active:
52+
By default this package removes these native runtime files from publish output when active:
5353

5454
- `libSkiaSharp.dll`
5555
- `libHarfBuzzSharp.dll`
5656
- `libSkiaSharp.so`
5757
- `libHarfBuzzSharp.so`
5858

59-
You can restore default SDK copy behavior with:
59+
## Advanced Options
60+
61+
### Keep SkiaSharp native runtime files in publish output
6062

6163
```xml
6264
<PropertyGroup>
6365
<DisableSkiaHarfBuzzRuntimeCopy>false</DisableSkiaHarfBuzzRuntimeCopy>
6466
</PropertyGroup>
6567
```
68+
69+
### Disable Avalonia designer detection
70+
71+
If you only want to use SkiaSharp, you can disable Avalonia designer environment detection with the following property to avoid taking a dependency on Avalonia:
72+
73+
```xml
74+
<PropertyGroup>
75+
<DetectAvaloniaDesigner>false</DetectAvaloniaDesigner>
76+
</PropertyGroup>
77+
```

0 commit comments

Comments
 (0)