I have a VSTO solution that has a postbuild event PowerShell script that modifies the manifest file. After the manifest file is modified, I resign it using Mage. This all worked great in Visual Studio 2010, and now after upgrading to Visual Studio 2012 this no longer works.
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 .NET 4.0 does not work. Upgrading the solution to .NET 4.5 is not an option as this program is for Excel 2010.
How can I fix this problem?
This is slightly confusing. I looked up the Visual Studio 2012 documentation and noticed that for
mage.exeit referred to the Windows SDK for Windows 7. Interestingly, Mage is included with the Windows 8 SDK tools, but it is now in the folder\bin\NETFX 4.0 Tools\instead of just bin… So my post build events were pointing at the wrong SDK folder…See Walkthrough: Manually Deploying a ClickOnce Application (MSDN).