We are creating an Outlook plugin in C #. It is built without problems in VS and is signed with a temporary pfx certificate. We want to put the build process in Jenkins and run it automatically.
We tried to launch a VS solution using MSBuild. It works fine on a development machine, but there is an error in Jenkins:
The following key file could not be imported: OutlookPlugin_TemporaryKey.pfx. The key file can be password protected. To fix this, try importing the certificate again or manually install the certificate in a strong CSP name with the following container name: VS_KEY_A688DC31A30F3EF1
We do not know how to specify the pfx password for automatic assembly. Or else automate the sign process.
One of the solutions that we found was to open the project in VS on the same computer and as the same user as for the automated process, and enter the password. This does not work, perhaps because Jenkins erases the workspace every day. If we try to compile without signing and then sign it later, he complains that the ClickOnce assembly must be signed. It seems that Office plugins should use ClickOnce.
So how do you specify the pfx password somewhere in the build file?
We are using VS 2010 with Office Tools.
source share