Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
799 views
in Technique[技术] by (71.8m points)

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

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=\web1d$ApplicationsAddInName

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...