Install ItemTemplate into Delphi Prism



In this screencast we translate a C# Entity Framework ItemTemplate into a Delphi Prism Template. Then we install that template into the IDE in the same location as it is for the C# version.

The template doesn't work the same way as the C# template does, however, because the wizard that is called at the end of the .vstemplate file only works for C# and VB.NET projects. The reason for this is that it does some codegen for you at the end. In Prism we want to do our own POCO objects, though, so it's not that big of a deal.

The steps for this are pretty straightforward, but it may be nice to see it visually in the screencast if you've never done anything with templates. You'll be able to see steps that I take for granted in these instructions for example.

  • Browse out to the C# template you want
  • Copy the template somewhere and unzip it
  • Copy a Prism (Oxygene) template as well
  • Compare the C# and Prism .vstemplate files to see what changes will need to be made
  • If there are C# code files in the C# template you'll need to translate them as well
  • Zip the new Prism template files into a folder and plact it into the correct Visual Studio IDE template folder
  • Open a command prompt with administrative rights if you're using Windows 7 or Vista, but on XP a regular prompt will work
  • use the change directory command (CD) to get into the Visual Studio 2010 IDE folder where the executable devenv.exe is located
  • Run the command devenv.exe /installvstemplates

Your ItemTemplate should now be installed into Delphi Prism.


About The Author

Ron Grove draws on over ten years of training, network administration and development experience. He loves to work with new technology and see how that technology can be best utilized by his clients. If you are interested in consulting services with Ron, you may contact him through his company website Evanoah I/T Services.

Share |

Comments: