Skip to content

Commit 2038142

Browse files
committed
NativeAOT doc: add generic ExcelDnaToolsPath workaround
1 parent c5873ab commit 2038142

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ When using early preview package sets (from NuGet.org or another trusted feed),
1212

1313
- Align all `ExcelDna.*` package versions across `ExcelDna.AddIn`, `ExcelDna.Integration`, and `ExcelDna.AddIn.NativeAOT` so they come from the same preview train.
1414
- 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, `ExcelDnaToolsPath` may need to be set explicitly to ensure the correct `ExcelDna.xll` tooling is used.
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+
```
1622

1723
Publishing the following **MyAddin.csproj** C# project produces native 64-bit **MyAddin-AddIn64.xll** Excel add-in:
1824

0 commit comments

Comments
 (0)