GAT/GAX - Creating a guidance package

14 06 2008

In this post we will start of with our Domain Driven Design Software Factory, the first step is obviously creating the package itself. But before we commence, I need to give some credits to my former colleague Jelle Druyts as this post is blatant plagiarism of his blog post from back in the year 2006 … but at least the pictures of this post are based on the 2008 edition of the Guidance Automation Toolkit.

To start of creating your own package, you can make use of a guidance package specifically designed for creating other guidance packages. That’s what I call eating your own dog food. So let’s generate the source for our package in a solution called Factory, which can be obtained in its current form from our codeplex team project.

guidancepackagepackage.jpg

The second part of this wizard allows you to set some package options like the package name, the namespace and some other information. Make sure not to include spaces in the package name as that will give issues later on.

guidancepackage-options.jpg

register-guidancepackage.jpgThe wizard will create us a solution with sample code for most of the elements that you can find in a guidance package, like bound and unbound recipes, templates, snippets, wizard pages and more… Besides all the sample code, there is also an installer and a setup package generated so that you can immediatly start of testing the package.  But before we can do this we need to register the guidance package. This can be done by right clicking the guidance package project and selecting “Register Guidance Package”.

In order to test your guidance package, you need to open a new instance of visual studio and navigate to the Guidance Packages section of the New Project window. As you will notice, the Domain Driven Design Software Factory has been added as a guidance package.

Note that registering the guidance package does take some time as all elements need to be reconfigured inside the visual studio environment. If you don’t have any new recipes or templates that need to be registered or if you didn’t change any HostData sections that define the integration with Visual Studio, you can get away with the “Quick Register” option which is remarkably faster.

Now let’s open a new instance of Visual Studio and lets create a sample solution and fill out the wizard.

samplesolution.jpg

samplesolutioncreated.jpgAnd as a result of our guidance packages code generation, we end up with a solution that we can use to test the sample structure, templates, bound and unbound recipes.

I suggest you take a look around the generated solution if you’re not acquainted with the guidance automation packages, otherwise you can delete it again as it has obviously nothing to do with Domain Driven Design.

Next time we will start shaping our factory so that it will enforce the default Domain Driven Design layering, which has already been discussed in the Setting the scene column.

See you next time,
Yves Goeleven


Actions

Information

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>




Ignoring the Mommy Wars. Part 2
… A Tale of Two Cults The problem is that the mommy wars portray women’s life choices as conforming to one of two mutually exclusive, weighty ideas: the cult of the career and cult of domesticity. Combative rhetoric propagates the idea that once you’ve chosen the latter you are forever bound to it, and if you’ve chosen [..]

Ignoring the Mommy Wars. Part 1
Rebecca Mark-Jusbasche is superwoman. A multimillionaire former executive, she was named one of Fortune magazine’s 50 Most Powerful Women in Business. She also raised twin boys while building her career, taking them as toddlers to Harvard Business School with her, then bringing them along on the corporate jet when she could. Granted, not everything went [..]

Hare of Howden
In Howdentown as I have heard ‘em tell Once there was a white hare, she used to there to dwell She’s been hunted by the greyhounds and the beagle-dogs did fare And there’s not a one amongst’em could keep up with that white hare She’s faster than the black, and she’s bonnier than the brown And there’s not a dog [..]

Online Pharmacy For Pain Relief Treatment
As a person gets older, having to put up with arthritis pain is one of the worst things to deal with. The elderly are not the only ones affected by arthritis pain; younger people can suffer from it as well. In this case a person would spend most of their life experiencing the pain of [..]

Muscle Relaxers Zanaflex without prescription. Pacient info.
If your doctor has prescribed the muscle relaxant Zanaflex (Tizanidine Hydrochloride) for you, and you are uncertain about what it is exactly or how you should take it, or if you merely wish to learn something about Zanaflex medication, this information may be helpful for you. You can purchase Zanaflex (Tizanidine Hydrochloride) in either tablet [..]

All News