title: Error attempting to sign assembly with SHA256 in Visual Studio
body: <p>I have a XAML browser application created in Visual Studio that I am trying to deploy to a client.  (Using Visual Studio 2015 Community.)</p>
  
  <p><strong>In attempting to sign my ClickOnce assembly using a commercial certificate (SHA256 algorithm), Visual Studio is giving the following error message:</strong></p>
  
  <blockquote>
    <p>C:\Program Files\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(3616,5): error MSB3482: An error occurred while signing: Failed to sign bin\Debug\app.publish\ <i>[assembly name]</i> .exe. SignTool Error: Invalid option: /fd</p>
  </blockquote>
  
  <p><br>
  Previously we were using a self-issued test certificate which utilized SHA1 with the following settings:</p>
  
  <p><a href="https://i.stack.imgur.com/mcmYx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mcmYx.png" alt="enter image description here"></a></p>
  
  <p><br>
  But when tried with a self-issued SHA256 test certificate (or using the commercial certificate which is also SHA256) with the following settings we receive the aforementioned error.</p>
  
  <p><a href="https://i.stack.imgur.com/vvzSD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vvzSD.png" alt="enter image description here"></a></p>
  
  <p>Any ideas on how to get Visual Studio to use these SHA256 certificates?</p>