I am using some Win32 DLL files in an Outlook 2007 add-in.
So, I added a dll, with the action line "Content" and copy to the local directory.
To get the path to them, I would usually use:
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "MyDll.dll");
When publishing ClickOnce Assembly.GetExecutingAssembly does not give me the standard path to all of my ClickOnce files. My files are in% appdata% .. \ Local \ Apps \ 2.0, but the assembly is in% appdata% .. \ Local \ assembly.
Is there a better way to get the path to these DLLs from within the Outlook add-in deployed by ClickOnce?
jonathanpeppers
source share