Use ExcelDna.Interop for Office Interop Assemblies
masterThe ExcelDna.Interop package provides local copies of essential Microsoft Office primary interop assemblies, allowing you to automate Excel and the Visual Basic Editor (VBE) from .NET.
Included assemblies:
Microsoft.Office.Interop.Excel.dllMicrosoft.Vbe.Interop.dlloffice.dll
Supported frameworks:
- .NET Framework 4.5.2
net6.0-windows7.0
Build Behavior: For C# and Visual Basic projects, the package is configured to embed the interop types into your assembly rather than copying the DLLs to the output directory. This helps keep your deployment clean. Note that F# projects do not follow this automatic embedding behavior and may require manual configuration.