I'm using the VSO build agent to compile a clickonce project. We have a certificate for signing the manifest, however msbuild keeps failing due to the certificate not being in the user's certificate store. The certificate is password protected. I think the vso build agent runs under my credentials on the server (since I installed it), but I am not sure. I installed the certificate under my credentials and it still fails. I even tried to install the certificate in the local machine store and it still failed.
How can I get this build to pass if the certificate is the only issue?