Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C# Plugin for Visual Studio 2008 - Code Generator
#1
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.
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)