title: Re-signing a ClickOnce manifest in Visual Studio 2012
body: <p>I have a <a href="http://en.wikipedia.org/wiki/Visual_Studio_Tools_for_Office" rel="nofollow">VSTO</a> solution that has a postbuild event <a href="http://en.wikipedia.org/wiki/Windows_PowerShell" rel="nofollow">PowerShell</a> script that modifies the manifest file. After the manifest file is modified, I resign it using <a href="http://msdn.microsoft.com/en-us/library/acz3y3te%28v=vs.80%29.aspx" rel="nofollow">Mage</a>. This all worked great in Visual Studio 2010, and now after upgrading to Visual Studio 2012 this no longer works.</p>
  
  <p>I found some information on a Microsoft form that eluded to the fact that the encryption for Visual Studio 2012 manifest files has changed, and this is why resigning one that targets <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="nofollow">.NET</a> 4.0 does not work. Upgrading the solution to .NET 4.5 is not an option as this program is for Excel 2010.</p>
  
  <p>How can I fix this problem? </p>