0

I'm a learner about ExcelDNA.According to the example, I make it simple to test the package "FirstAddIn-packed.xll". When I finished it, I import it to excel and no problem and my computer has installed vs2019. Please look at the Images. But when I copy the package "FirstAddIn-packed.xll" to another computer it not work. hope you reply. thank you very much. My computer: My computer installed vs2019 My computer installed vs2019 My computer installed vs2019

other computer: oter computer only have office and

1 Answer 1

1

I am not sure why it works on your machine. In the background I see that your library is built to target .netstandard 2.0. This is not yet supported by Excel-DNA. You should make a new class library that targets .NET Framework, and then install the ExcelDna.AddIn package. You must also be using the packages.config style NuGet integration, and not the newer PackageReference style.

If you do all of that, it should work both on your machine and others.

3
  • Thank you very much, It's my mistake. You are right.
    – ericsjz
    Oct 10, 2020 at 7:56
  • @Govert To confirm, if I can get it to work on my computer, saving the file then distributing it will ensure it works everywhere? Essentially, I'm trying to add functionality using C# without having to use regasm.
    – TechFanDan
    Mar 13, 2021 at 12:44
  • @TekiusFanatikus The best place to ask if you have an Excel-DNA question is on the Google group at groups.google.com/forum/#!forum/exceldna
    – Govert
    Mar 13, 2021 at 21:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.