The original SoapBox Core codeprojects article and all the other documentation for SoapBox Core give excellent step-by-step instructions on how to create new add-ins. These instructions are so simple it seems like they should just be abstracted away.

Does anyone have a Visual Studio project template for creating a new SBC add-in?

asked 11 Feb '11, 18:10

KarlB's gravatar image

KarlB
576202136
accept rate: 0%


I have a project template. It has really helped the people I work with use and learn SBC. After importing the project template, I can go into Visual Studio, click file -> New Project and I get this:

alt text

I then simply select the 'SoapBoxAddInTemplate' option, I name my project and I get a new project that looks like this:

alt text

Notice that all the SoapBox Core references are already included in the project and there are pre-generated files for documents, pads, menu items, ect. Each of the files you see in the Solution Explorer screen shot above have prewrittne code, following all the standard SBC (string resources, image resources, ect) and are ready for application specific code. In-fact, The template is created in a way that allows me to simply compile it, start SoapBox.Core.Host and see a blank menu item under the file menu that pops-up a blank pad when clicked. All without having to write a single line of non-project template code!

If you are interested in using this project template, please let me know and I will send it to you. Maybe we can add it to the main branch of the project if enough people are interested. I am open to requests for changing or extending the template, also the template is customizable once you have it so you can decide what you want and don't want.

link

answered 11 Feb '11, 18:22

KarlB's gravatar image

KarlB
576202136
accept rate: 0%

edited 13 Feb '11, 20:49

Wow, great work! I would be interested in including it in the trunk eventually.

(11 Feb '11, 20:57) Scott Whitlock ♦♦

What do you think the template should contain? Add-in templates could be much simpler and/or more complex than what is shown above. One thought was to create several different templates each for a different common task.

My 'Soap Box CRUD Template' is an example of a more complex template because after creating a new project with it I get a pad that already has a ListView, a Save button and a region for entering search terms. The ListView is also pre-wired to be able to mark which of its' records are dirty. This is the template I use to help me create new CRUD screens quickly.

Any thoughts?

(13 Feb '11, 21:04) KarlB
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×1

Asked: 11 Feb '11, 18:10

Seen: 61,223 times

Last updated: 13 Feb '11, 21:04

powered by OSQA