DirectNAot.Extensions
1.7.1
dotnet add package DirectNAot.Extensions --version 1.7.1
NuGet\Install-Package DirectNAot.Extensions -Version 1.7.1
<PackageReference Include="DirectNAot.Extensions" Version="1.7.1" />
<PackageVersion Include="DirectNAot.Extensions" Version="1.7.1" />
<PackageReference Include="DirectNAot.Extensions" />
paket add DirectNAot.Extensions --version 1.7.1
#r "nuget: DirectNAot.Extensions, 1.7.1"
#:package DirectNAot.Extensions@1.7.1
#addin nuget:?package=DirectNAot.Extensions&version=1.7.1
#tool nuget:?package=DirectNAot.Extensions&version=1.7.1
DirectN AOT Extensions
This is the companion project of DirectN AOT, which it requires. It's only for .NET 10 and beyond, it won't work with older versions nor with .NET Framework.
The interfaces in DirectN keep the exact native shape, and DirectN.Extensions adds a .NET-looking layer on top of them:
- extension methods for the most used Direct2D, DirectWrite, DXGI, D3D11, D3D12, Direct Composition, WIC and Media Foundation interfaces.
They throw instead of returning an
HRESULT, returnIComObject<T>for COM objects, and exist for both the raw interface andIComObject<T>. - COM object utilities (
ComObject,IComObject<T>) that release COM references deterministically, and COM memory utilities (ComMemory). - string utilities (
Pwstrand friends for PWSTR, PSTR, BSTR, etc.). - VARIANT and PROPVARIANT utilities (
Variant,PropVariant). - Win32 desktop utilities (windows, monitors, message decoding, command line, etc.), bound to DirectX and Direct2D primitives.
See the DirectN.Extensions section of the main README for the conventions and the object lifetime rules.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- DirectNAot (>= 1.7.1)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on DirectNAot.Extensions:
| Package | Downloads |
|---|---|
|
WebView2Aot
AOT-Compatible Windows WebView2 interop Code for .NET Core without any dependency on Winforms, WPF, WinUI, or other UI frameworks. |
|
|
WicNetCore
WIC, Direct2D and DWrite interop code. |
|
|
ShellN.Extensions
A friendly, AOT compatible thin managed layer over some of the Windows Shell namespace APIs, on top of ShellN. Browse and operate the shell as objects with ShellItem, ShellFolder and KnownFolder, invoke the real context menu, read property stores, and watch for shell changes. |
|
|
AOTrino
Electron-like desktop apps on .NET AOT + WebView2, single-exe, Windows x86/x64/ARM64, front-end-framework-agnostic (React/Fluent layers optional). |
|
|
Wuldas.Square.Extensions.WebView
Native operating-system WebView control for Square |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on DirectNAot.Extensions:
| Repository | Stars |
|---|---|
|
aelyo-softworks/AOTrino
Electron-like desktop apps on .NET AOT + WebView2, single-exe, Windows (x64/x86/ARM64), front-end-framework-agnostic (React/Fluent UI layers optional).
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.1 | 171 | 10/20/2026 |
| 1.7.0 | 2,639 | 9/23/2026 |
| 1.6.9 | 178 | 9/21/2026 |
| 1.6.8 | 119 | 9/20/2026 |
| 1.6.7 | 165 | 9/14/2026 |
| 1.6.6 | 860 | 8/27/2026 |
| 1.6.5 | 365 | 7/20/2026 |
| 1.6.4 | 282 | 7/2/2026 |
| 1.6.3 | 205 | 6/9/2026 |
| 1.6.1 | 138,607 | 4/26/2026 |
| 1.5.2 | 400 | 2/20/2026 |
| 1.5.1 | 225 | 1/4/2026 |
| 1.4.1 | 1,715 | 11/11/2025 |
| 1.4.0 | 578 | 9/17/2025 |
| 1.3.2 | 867 | 7/28/2025 |
| 1.3.1 | 851 | 5/15/2025 |