The package
Microsoft.Office.Interop.Excel.15.0.4795.1000
is not listed on the official NuGet site. And I can't see any reason why it would have a dependency on the HTML Agility Pack.
However, you've tagged your question as ASP.NET. Office Interop cannot be used in ASP.NET applications:
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
There are various ways to read and create Excel spreadsheets on the server without using Office interop. For example:
NB: If you need to support older Excel documents (
.xls
rather than
.xlsx
), then you'll need to use NPOI:
GitHub - tonyqus/npoi: a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.[
^]