INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Media Center 12 C# Plugin Template for Visual Studio .NET 2005  (Read 10434 times)

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone

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

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:
  • Click Next
  • A warning saying the content is not signed will pop up
  • Click Yes
  • Click Finisch in the next box
  • Click Close
  • 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)
  • A new Project will be created for you after you click 'OK'
  • Follow the instructions in the HTML displayed

Have fun!

Paul.
Logged

scthom

  • Citizen of the Universe
  • *****
  • Posts: 621
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #1 on: April 23, 2007, 12:36:42 am »

Cool!  I need to learn how to do that.
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #2 on: April 23, 2007, 02:22:10 am »

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!
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #3 on: April 23, 2007, 03:27:40 am »

Nice work Paul!  =)
Post the link on the forum, I'm sure alot of people could find it useful.

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #4 on: April 23, 2007, 03:29:51 am »

Will do! Tonight local time (it's now 10:30 here).
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #6 on: May 01, 2007, 02:43:25 am »

Before this thread is lost in the crowd shouldn't we keep it save someplace? I could describe it in the Wiki.
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #7 on: May 01, 2007, 04:35:01 am »

I'd describe it in the wiki, I've also added it to the top post
for this board

scthom

  • Citizen of the Universe
  • *****
  • Posts: 621
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #8 on: May 01, 2007, 08:14:58 am »

Too bad it doesn't work for C++, only C#.
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #9 on: May 01, 2007, 11:28:29 am »

Hi Scot,

Well there is a solution to that problem. Switch to C#, it's great fun!

Paul.
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #10 on: May 03, 2007, 05:12:01 pm »

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.

Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72367
  • Where did I put my teeth?
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #11 on: May 07, 2008, 08:12:22 am »

Paul,
I fixed your first post and removed your last.

Thanks.
Logged

PaulSinnema

  • Galactic Citizen
  • ****
  • Posts: 393
  • You don't know what you're missing until its gone
Re: Media Center 12 C# Plugin Template for Visual Studio .NET 2005
« Reply #12 on: May 08, 2008, 04:09:15 am »

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.
Logged
Pages: [1]   Go Up