MC Plugin Template for Visual Studio

From wiki.jriver.com
Revision as of 18:58, 13 December 2008 by PaulSinnema (talk | contribs)
Jump to navigation Jump to search

This Template, for Visual Studio .NET 2005, creates a Project with all the basic coding needed to create a Plugin for Media Center 12.0.213 or higher. It can be downloaded here

To Install do the following:

Download the zip file. Extract the MC_CSPlugin.vsi file to some location on your harddisk. Doubleclick the file The Visual Studio Content Installer will open:

MC Plugin Template VS Content Installer.gif

Click Next A warning saying the content is not signed will pop up

MC Plugin Template NotSignedWarning.gif

Click Yes Click Finish in the next box

MC Plugin Template VS Content Installer Finish.gif

Click Close

MC Plugin Template VS Content Installer Succesfull.gif

Creating a new Project in Visual Studio .NET now has become very easy Start Visual Studio .NET 2005 Click in the 'File' Menu on 'New' and 'Project' (or Type Ctrl-Shif-N)

MC Plugin Template VS New Project.gif

MC Plugin Template VS New Project Wizard.gif

A new Project will be created for you after you click 'OK' Follow the instructions in the HTML displayed

MC Plugin Template VS New Project Instructions.gif

In thr project a file called Template.snk is present. After you've created a new project with the template this file can be found in the Project Explorer. If you plan to build more than 1 plugin with the template it is best to remove this file from your project and create a new one executing the Strong Name Tool (sn.exe) from the "Visual Studio 2005 Command Prompt".


Start the "Visual Studio 2005 Command Prompt". Navigate to your directory and execute the command "sn.exe -k Templatename.snk" (of cource replacing the 'Templatename.snk' with your own filename ending with .snk). Add this item back into the project.