I have exported a Visual Studio Template using the Export Template Wizard. The template requires some user input, so I added a Wizard assembly, which gets invoked the way it should, except for some minor things, so I need to debug.
I found a rather understandable summary on how to debug in this MSDN thread, but can't get it to work as described. Here's what I did:
In the Wizard Project (VS run as Administrator)...
- set a break point in my wizard's
ProjectFinishedGenerating
method set project settings -> build -> output path to
Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\
set project settings -> debug -> start action to external program (Visual Studio 2010)
- Hit F5 to start debugger
At this point - as expected - a new VS 2010 instance opens up, but with nothing loaded. So, wherever my breakpoints were set, they won't be hit. I guess this goes back to the fact that the VSIX Template contains its own copy of the Wizard DLL, without pdbs, so probably debugging won't work with VSIX.
I've tried to get this to work the way described in the MSDN post by exporting a Template the regular way (as a ZIP), then modifying the VSTemplate within the ZIP to reference the Wizard assembly, but all I get is an error message saying that the wizard dll could not be found (not even after adding it to the GAC). And yes, it is strongly named and signed.
Can anyone point me into a direction that would help me debug my IWizard implementation?