Can you include a COM object in a package so that it will publish successfully from MSBUILD on a computer without that DLL installed?

0

Our situation is that we have built a MS Outlook 365 COM Add-In, and we are trying to publish it using Jenkins. We are able to build it successfully on commit using msbuild, but in trying to publish it we get the following error:

warning MSB3284: Cannot get the file path for type library "2df8d04c-5bfa-101b-bde5-00aa0044de52" version 2.8. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

The library in question is the Microsoft Office 16.0 Object Library. I believe I have found the DLL, and have tried including it, and registering it on the publishing machine. It could not be registered, and simply including it did not solve the problem.

To build and publish we are using MSBuild 2019 with the following parameters:

/p:Configuration=Release /t:Publish /p:PublishUrl=\\\web1\d$\Applications\AddInName\

Is there any way to get around this so it can successfully publish the setup?

jenkins
msbuild
outlook-addin
asked on Stack Overflow Jan 6, 2021 by Mike

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0