0

I had a big problem installing our custom tab with macros in excel due to a "strong name required" error in visual studio. Finally we sorted out the problem by putting an assembly in the Global Assembly Cache before we installed the macro.

However, now every time I publish a new version with visual studio I have to manually put the assembly in the GAC with the command prompt, or the installation will fail. Does anyone know how to achieve this automatic when the macro is installed? Is it possible to declare it in the code somewhere, or in visual studio, that the assembly should be copied to the GAC before it continues with the installation?

I would really appreciate some help. Thank you in advance!

Michael Petch
  • 46,082
  • 8
  • 107
  • 198
konda
  • 1
  • How are you installing it? – Matt Wilko Mar 23 '16 at 15:06
  • I'm publishing a new setup.exe file from visual studio and install it from there on windows 8.1! – konda Mar 23 '16 at 15:13
  • Possible duplicate of [Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL](http://stackoverflow.com/questions/3087063/use-visual-studio-setup-project-to-automatically-register-and-gac-a-com-interop) – DWRoelands Mar 23 '16 at 20:48
  • Yes, it is. Thank you! We solved it by changing the "Embed Interop Types" to True :) Maybe this thread should be deleted. – konda Mar 24 '16 at 19:22

0 Answers0