Q:
How do I migrate my VB template to C#? Do you have sort of a template for making a template? I'm using VSTA version 1.
A:
The best thing to do would be to take a look at the ShapeAppCSharp sample templates included with the SDK. You can base your templates off these. The vstemplate and xxproj files for the templates are very similar between C# and VB.
I suggest using windiff to find the differences in the xxproj files in the sample templates, then adding those changing to turn your VB template into a C# template. For your large AppAddIn.Designer.vb file, you may find a code translator
helpful- here’s a link to one I have used before.
The sample templates (for VSTA 1) should be located at:
C:\Program Files\Visual Studio 2005 Tools for Applications\SDK\2007.02\VisualStudioToolsForApplications\Samples
Each of the samples includes templates for both C# and VB in the Templates folder within the samples. To use the samples to actually write add-ins you will need to compile the samples and run the included setup files.
From the vstemplate file:
:
Posted
May 28 2009, 08:48 AM
by
BillL