title: publish C# Excel Addin with UDF
body: <p>I work on a Excel Addin in C# and my problem is present when i publish my C# Addin.</p>
  
  <p>I'll explain:</p>
  
  <p>I used this code: <a href="http://csharpramblings.blogspot.fr/2011/09/communicating-between-vsto-and-udfs-in.html" rel="nofollow noreferrer">http://csharpramblings.blogspot.fr/2011/09/communicating-between-vsto-and-udfs-in.html</a></p>
  
  <p>Which allow me to use UDF in my Addin. And it's work very well ! ... in Visual Studio 2013.</p>
  
  <p>When i launch my Addin with Visual Studio i see my Addin in "COM Addins" in Excel. And my UDF in "Excel Addins" in Excel.</p>
  
  <p>Then if:
   I publish my Addin with rightclick in the project in visual studio.
   I install the addin with the setup.exe generated by VS.
   I launch Excel
  => my addin works well, but my UDF doesn't work. Values of the cells are "#NAME?".</p>
  
  <p>I checked in the COM Addins, my Addin is present.
  I checked in the Excel Addins, i don't see my UDF.</p>
  
  <p>So i used RegAsm to register the Assembly of the published DLL.
  Now i see my UDF in the "Excel Addins" but it still doesn't work.</p>
  
  <p>If anybody has an idea to help me that would be great !</p>
  
  <p>I use: Windows 8.1 Pro, Visual Studio Pro 2013, Excel 2016 with Office365</p>
  
  <p>Thank you in advance for your time.</p>