View unanswered posts | View active topics It is currently Thu Dec 14, 2017 2:26 pm



Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Visual Studio - Plugin Template 
Author Message
User avatar

Joined: Thu Aug 09, 2012 2:35 pm
Posts: 501
Location: UK
Reply with quote
Post Visual Studio - Plugin Template
So there is a few fiddly bits that need to be done every time you want to start a new plugin, so I though I would make life easier for the new and old developers a like by creating a Visual Studio Template to do all the work for you so that all you have to do is wright the actual plugin code. The template is in the plugins folder in GIT as well as instructions on how to get Visual Studio to see the template FYI it goes in the Visual Studio template folder :D. So what will it do:

* Creates the Visual studio project with the correct names spaces and file names
* updates the logger code to be relevant to your plugin
* sets up the install.sql
* sets up the osapd file with the correct values and creates a new GUID for your plugin
* sets up the correct output paths for the plugin (as long as you put in the plugin folder)

Whats left to do:
* update the screenshot with one that's relevant to your plugin
* update the author in the osapd file
* update the description in the osapd file
* update the wiki url in the osapd file

and your done. I think I have covered all the bits, if I have missed anything in the project template let me know and I will get it updated. I have added a pic so you know what your looking for in Visual Studio but hopefully is fairly obvious. The template is only for C# plugin I'm not a major fan of VB but if there is a high demand I can create one. It should work fine with Visual Studio Express but I couldn't try it as I don't have it installed.


Attachments:
VSTemplate.jpg
VSTemplate.jpg [ 125.93 KiB | Viewed 6025 times ]
Mon May 20, 2013 11:45 am
Profile

Joined: Wed Feb 06, 2013 12:12 pm
Posts: 86
Reply with quote
Post Re: Visual Studio - Plugin Template
Awesome. This will come in handy.


Mon May 20, 2013 12:19 pm
Profile

Joined: Fri Jan 27, 2012 6:50 am
Posts: 711
Location: San Marcos, Ca.
Reply with quote
Post Re: Visual Studio - Plugin Template
Fantastic Mat! This is a Godsend for us Newbies at coding... I'll give it a go on express edition?


Mon May 20, 2013 1:18 pm
Profile
User avatar

Joined: Thu Aug 09, 2012 2:35 pm
Posts: 501
Location: UK
Reply with quote
Post Re: Visual Studio - Plugin Template
Since i did the bulk of the work ;) if there is any kind sole that would update the documentation it would be much appreciated. the following page looks very out of date:

http://www.opensourceautomation.com/wik ... ent_basics

this guide will likely need updating as well:

http://www.opensourceautomation.com/wik ... ugin_Guide


Mon May 20, 2013 1:28 pm
Profile

Joined: Fri Jan 27, 2012 6:50 am
Posts: 711
Location: San Marcos, Ca.
Reply with quote
Post Re: Visual Studio - Plugin Template
I would be happy to Mat, but those are two areas where I don't think I have the skill set just yet to write up a decent documentation in the wiki. I did however load up your template in VS 2012 express and it seem to be working.

Ron


Mon May 20, 2013 7:28 pm
Profile

Joined: Thu Aug 18, 2011 8:04 am
Posts: 147
Reply with quote
Post Re: Visual Studio - Plugin Template
Hello Matt,

I have tried this on VS 2010, does not seem to pick it up, be that I poped it in to the

<user name>\Documents\Visual Studio 2010\Templates\ProjectTemplates

then as well as

<user name>\Documents\Visual Studio 2010\Templates\ProjectTemplates\C#

No joy, is this only for VS2012?

John


Wed Jul 03, 2013 3:32 am
Profile
User avatar

Joined: Thu Aug 09, 2012 2:35 pm
Posts: 501
Location: UK
Reply with quote
Post Re: Visual Studio - Plugin Template
Good question, Im not sure as I never tried it on 2010 as I didn't re-install it after my OS upgrade. I will have a look when I get home if I can.


Wed Jul 03, 2013 6:14 am
Profile

Joined: Fri Jan 27, 2012 6:50 am
Posts: 711
Location: San Marcos, Ca.
Reply with quote
Post Re: Visual Studio - Plugin Template
Is this template still available? If so what is the actual name of the file in GIT? I most likely am blind but I can't seem to locate it.

Ron


Tue Oct 01, 2013 3:22 pm
Profile

Joined: Mon Dec 05, 2011 10:44 am
Posts: 554
Location: Jacksonville, Fl.
Reply with quote
Post Re: Visual Studio - Plugin Template
Try this Ron:

https://github.com/opensourceautomation/Open-Source-Automation/tree/master/Plugins/Visual%20Studio%20Template


Tue Oct 01, 2013 4:08 pm
Profile

Joined: Fri Jan 27, 2012 6:50 am
Posts: 711
Location: San Marcos, Ca.
Reply with quote
Post Re: Visual Studio - Plugin Template
Thanks kherron,
That did the trick...


Thu Oct 03, 2013 8:02 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by ST Software for PTF.