Я создал надстройку ExcelDna, выполнив следующие действия на веб-странице ExcelDna:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExcelDna.Integration;
namespace ExcelCalculator
{
public static class ExcelDnaTest
{
[ExcelFunction(Description = "My first .NET function")]
public static string HelloDna(string name)
{
return "HelloDna " + name;
}
}
}
Компиляция проекта генерирует следующие файлы:
ExcelCalculator.dll
ExcelCalculator.pdb
ExcelCalculator-Addin.dna
ExcelCalculator-Addin.xll
ExcelCalculator-Addin-packed.xll
ExcelCalculator-Addin64.dna
ExcelCalculator-Addin64.xll
ExcelCalculator-Addin64-packed.xll
Затем я перетащил ExcelCalculator-Addin.xll в мой сеанс Excel 2016 x86, я могу успешно запустить функцию и увидеть ожидаемый результат. Однако я нигде не видел надстройки ExcelCalculator. Это не в Настройки -> Надстройки -> Excel-надстройки
Кто-нибудь случайно знает почему? Большое вам спасибо.