Skip to content

Commit 761381a

Browse files
authored
Merge pull request #14 from Excel-DNA/chore/nativaot-preview-doc-notes
Update Native AOT docs for preview package caveats
2 parents 23da7e4 + 2491e64 commit 761381a

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

docs/guides-basic/dotnet-native-aot-support.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,31 @@
22
title: ".NET Native AOT support"
33
---
44

5-
Excel-DNA can produce native 64-bit Excel add-ins, that can run on machines that don't have the .NET runtime installed, using .NET 8.0
5+
Excel-DNA can produce native 64-bit Excel add-ins, that can run on machines that don't have the .NET runtime installed, using .NET 8.0 (or later)
66
[Native AOT](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/)
77
deployment and **ExcelDna.AddIn.NativeAOT** package.
88

9+
## Notes for .NET 10 / preview package users
10+
11+
When using early preview package sets (from NuGet.org or another trusted feed), keep these points in mind:
12+
13+
- Align all `ExcelDna.*` package versions across `ExcelDna.AddIn`, `ExcelDna.Integration`, and `ExcelDna.AddIn.NativeAOT` so they come from the same preview train.
14+
- The generated build output for NativeAOT variants is typically under a RID-specific path (for example `bin\\<Config>\\<TFM>\\win-x64\\...`) rather than the managed default output path.
15+
- In preview or custom source setups, if you see a build error like `File does not exist (Xll32FilePath): ... ExcelDna.xll`, you can explicitly point `ExcelDnaToolsPath` at the `ExcelDna.AddIn` package tools folder:
16+
17+
```xml
18+
<PropertyGroup>
19+
<ExcelDnaToolsPath>$(PkgExcelDna_AddIn)\\tools\\</ExcelDnaToolsPath>
20+
</PropertyGroup>
21+
```
22+
923
Publishing the following **MyAddin.csproj** C# project produces native 64-bit **MyAddin-AddIn64.xll** Excel add-in:
1024

1125
```xml
1226
<Project Sdk="Microsoft.NET.Sdk">
1327

1428
<PropertyGroup>
15-
<TargetFramework>net8.0-windows</TargetFramework>
29+
<TargetFramework>net10.0-windows</TargetFramework>
1630
<ImplicitUsings>enable</ImplicitUsings>
1731
<Nullable>enable</Nullable>
1832

@@ -21,7 +35,7 @@ Publishing the following **MyAddin.csproj** C# project produces native 64-bit **
2135
</PropertyGroup>
2236

2337
<ItemGroup>
24-
<PackageReference Include="ExcelDna.AddIn.NativeAOT" Version="0.1.0" />
38+
<PackageReference Include="ExcelDna.AddIn.NativeAOT" Version="1.10.0-preview1" />
2539
</ItemGroup>
2640

2741
</Project>
@@ -613,4 +627,4 @@ public class FunctionLoggingHandler : FunctionExecutionHandler
613627

614628
Loading images for ribbon controls.
615629

616-
Copy to clipboard in Diagnostic Display.
630+
Copy to clipboard in Diagnostic Display.

0 commit comments

Comments
 (0)