Skip to content

Commit e53d0a0

Browse files
Update refs, add MAUI docs
1 parent 202a546 commit e53d0a0

File tree

8 files changed

+39
-16
lines changed

8 files changed

+39
-16
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: git lfs pull
5252

5353
- name: Install DocFX
54-
run: choco install docfx -y
54+
run: dotnet tool install -g docfx
5555

5656
- name: Build
5757
shell: pwsh

articles/imagesharp/gettingstarted.md

+13
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,16 @@ If you are experiencing a significant performance gap between System.Drawing and
121121
A few troubleshooting steps to try:
122122

123123
- Check the value of [Vector.IsHardwareAccelerated](https://docs.microsoft.com/en-us/dotnet/api/system.numerics.vector.ishardwareaccelerated?view=netcore-2.1&viewFallbackFrom=netstandard-2.0#System_Numerics_Vector_IsHardwareAccelerated). If the output is false, it means there is no SIMD support in your runtime!
124+
125+
### MAUI
126+
ImageSharp performs well with MAUI on both iOS and Android in release mode when correctly configured. For Android we recommend enabling LLVM and AOT compilation in the project file:
127+
128+
```xml
129+
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' AND '$(Configuration)' == 'Release'">
130+
<EnableLLVM>true</EnableLLVM>
131+
<RunAOTCompilation>true</RunAOTCompilation>
132+
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
133+
</PropertyGroup>
134+
```
135+
136+
>[!NOTE] Android performance in Debug mode appears to be significantly slower than in Release mode, this is not due to issues within the library itself rather upstream issues in the .NET Runtime. The following [.NET Runtime issue](https://github.com/dotnet/runtime/issues/71210) contains more information.

build.ps1

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
# Ensure all submodules are currently checked out to the latest tag.
1+
# Ensure all submodules are currently checked out to the latest commit/tag.
22
git submodule update --init --recursive
33
git submodule foreach git rm --cached -r .
44

55
Get-ChildItem ./ext -Directory | ForEach-Object {
66
$path = $_.FullName
7+
8+
Write-Host "Processing submodule: $path"
79

10+
# Fetch tags and check out the latest tag
811
git -C "$path" fetch --tags
9-
$lastTag = (git -C "$path" describe --tags $(git -C "$path" rev-list --tags --max-count=1)) | Out-String
10-
$lastTag = $lastTag.Trim()
1112

12-
Write-Host "$path => $lastTag"
13-
git -C "$path" reset --hard "$lastTag" --
13+
# Get all tags, sort them alphabetically, and select the highest one
14+
$highestTag = (git -C "$path" tag | Sort-Object -Descending)[0] | Out-String
15+
$highestTag = $highestTag.Trim()
16+
Write-Host "$path => $highestTag"
17+
18+
# Checkout the latest tag
19+
git -C "$path" reset --hard "$highestTag"
20+
21+
# Forcefully clean the submodule directory, suppressing any prompts
22+
git -C "$path" clean -fdx -q
1423
}
1524

25+
1626
# Ensure deterministic builds do not affect submodule build
1727
# TODO: Remove first two values once all projects are updated to latest build props.
1828
$env:CI = $false

docfx.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"disableGitFeatures": false,
1313
"disableDefaultFilter": false,
1414
"properties": {
15-
"TargetFramework": "netcoreapp3.1"
15+
1616
}
1717
},
1818
{
@@ -27,7 +27,7 @@
2727
"disableGitFeatures": false,
2828
"disableDefaultFilter": false,
2929
"properties": {
30-
"TargetFramework": "netcoreapp3.1"
30+
3131
}
3232
},
3333
{
@@ -42,7 +42,7 @@
4242
"disableGitFeatures": false,
4343
"disableDefaultFilter": false,
4444
"properties": {
45-
"TargetFramework": "netcoreapp3.1"
45+
4646
}
4747
},
4848
{
@@ -57,7 +57,7 @@
5757
"disableGitFeatures": false,
5858
"disableDefaultFilter": false,
5959
"properties": {
60-
"TargetFramework": "netcoreapp3.1"
60+
6161
}
6262
},
6363
{
@@ -72,7 +72,7 @@
7272
"disableGitFeatures": false,
7373
"disableDefaultFilter": false,
7474
"properties": {
75-
"TargetFramework": "netcoreapp3.1"
75+
7676
}
7777
},
7878
{
@@ -87,7 +87,7 @@
8787
"disableGitFeatures": false,
8888
"disableDefaultFilter": false,
8989
"properties": {
90-
"TargetFramework": "netcoreapp3.1"
90+
9191
}
9292
}
9393
],

ext/Fonts

Submodule Fonts updated 51 files

ext/ImageSharp

Submodule ImageSharp updated 158 files

ext/ImageSharp.Drawing

Submodule ImageSharp.Drawing updated 40 files

0 commit comments

Comments
 (0)