Southperry.net
C# Plugin for Visual Studio 2008 - Code Generator - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14)
+--- Forum: Rubik's Cube (https://www.southperry.net/forumdisplay.php?fid=58)
+--- Thread: C# Plugin for Visual Studio 2008 - Code Generator (/showthread.php?tid=18584)



C# Plugin for Visual Studio 2008 - Code Generator - Conciente - 2009-11-05

Hello,

I am having a hard time thinking this out. I need to make a plugin for Visual Studio 2008 that auto-generates code for ONE design pattern of my choice(I am probably going to choose the State pattern). Problem is... I need help, a lot of help.

I need to do a design of what I am going to do, preferably using UML. The "architecture" of the plugin. How is it supposed to work, like a description, etc

I also need to do an analysis of HOW I am going to implement it, using diagrams or whatever.

Any help would be greatly appreciated.


C# Plugin for Visual Studio 2008 - Code Generator - Spaz - 2009-11-05

Conciente Wrote:Hello,

I am having a hard time thinking this out. I need to make a plugin for Visual Studio 2008 that auto-generates code for ONE design pattern of my choice(I am probably going to choose the State pattern). Problem is... I need help, a lot of help.

I need to do a design of what I am going to do, preferably using UML. The "architecture" of the plugin. How is it supposed to work, like a description, etc

I also need to do an analysis of HOW I am going to implement it, using diagrams or whatever.

Any help would be greatly appreciated.
It sounds like this is for a class. If not, then depending on what exactly you want to generate, a Visual Studio snippet could be a lot easier. I've made one for creating thread-safe events in C#.

Otherwise, choose a design pattern that lends itself to code generation (something repetitive that a human would find boring to type). I'm not really up on design patterns so I can't help you there. Describe in pseudocode how the code generation will work, including what it takes as input. Take that design and figure out how to do that as a VS plugin. Once you've figured out what classes your plugin will have and what methods those classes will, there's your architecture.