title: MSBuild SignFile task returning MSB3481: The signing certificate could not be located
body: <p>I recently got a new code signing certificate. I'm using MSBuild's SignFile task to sign an application manifest. For some reason the task is returning:</p>
  
  <pre><code>MSB3481: The signing certificate could not be located.
  Ensure that it is in the current user's personal store.
  </code></pre>
  
  <p>The certificate is definitely in my personal store, I can see it in certmgr.msc. And I believe that I'm logged in as the same user since I'm able to sign the manifest using a different certificate that is in the same personal store. Not sure why this new certificate cannot be found.</p>
  
  <p>I'm even able to use signtool.exe with the new certificate's SHA1 to sign files just fine. But I would really prefer to use our existing MSBuild with the SignFile task. Any ideas what could be going wrong here?</p>
  
  <p>I've also tried importing the certificate with and without the complete certification path.</p>