Tuesday, December 18, 2007

Item Templates not showing up in VS2005

I recently converted the WebPart template provided by Microsoft from C# to VB (Microsoft didn't release a VB version and we are, unfortunately, standardized on VB).
After converting the code and placing it in the appropriate folder (C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\VisualBasic\SharePoint\), the template was still not showing when creating a new project. This was because the templates cache had to be refreshed. I was able to solve this thanks to a post by Eric Hammersley (Missing an item template in Visual Studio 2005? Try this...)

The secret was just to open a VisualStudio Command prompt and run the command

devenv /installvstemplates

No comments: