INTERACT FORUM
Windows => Plug-in Development => Topic started by: PaulSinnema on April 22, 2007, 10:44:19 am
-
Hi,
I've created a Template for Visual Studio .NET 2005. This Template 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:MC_CSPlugin.zip (http://web48.my.ibone.ch/downloads/MC_CSPlugin.zip)
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:
(http://web48.my.ibone.ch/images/MC/VS Content Installer.gif) - Click Next
- A warning saying the content is not signed will pop up
(http://web48.my.ibone.ch/images/MC/NotSignedWarning.gif) - Click Yes
- Click Finisch in the next box
(http://web48.my.ibone.ch/images/MC/VS Content Installer Finish.gif) - Click Close
(http://web48.my.ibone.ch/images/MC/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)
(http://web48.my.ibone.ch/images/MC/VS New Project.gif) - (http://web48.my.ibone.ch/images/MC/VS New Project Wizard.gif)
- A new Project will be created for you after you click 'OK'
- Follow the instructions in the HTML displayed
(http://web48.my.ibone.ch/images/MC/VS New Project Instructions.gif)
Have fun!
Paul.
-
Cool! I need to learn how to do that.
-
It's quite easy really only takes a lot of time to prepare. I found a discription on MSDN. I'll send you the link tonight!
-
Nice work Paul! =)
Post the link on the forum, I'm sure alot of people could find it useful.
-
Will do! Tonight local time (it's now 10:30 here).
-
As promised: http://msdn2.microsoft.com/en-us/library/ms364046(VS.80).aspx (http://msdn2.microsoft.com/en-us/library/ms364046(VS.80).aspx)
-
Before this thread is lost in the crowd shouldn't we keep it save someplace? I could describe it in the Wiki.
-
I'd describe it in the wiki, I've also added it to the top post
for this board
-
Too bad it doesn't work for C++, only C#.
-
Hi Scot,
Well there is a solution to that problem. Switch to C#, it's great fun!
Paul.
-
I've discovered a little problem with the template. In it 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.
-
Paul,
I fixed your first post and removed your last.
Thanks.
-
Hi Jim,
You fixed and removed. Ok... what did I do wrong? I realy think it's time I moved the Post to the Wiki. As soon as I have the time I will proceed and do that. My old Website will be off-line by the end of this year. I also need to fix the Help pages in the plugins I wrote, since they use the old url which is not available anymore. I think I will incorporate them into the plugin. Changes on my website then have no influence on the content in the plugin.
Greetz,
Paul.