index > Visual Studio Guidance Automation Toolkit > Factoring Factories :)

Factoring Factories :)

Hi,

I'd be interested to hear some advice / experience / opinion on how to create a set of related factories and allow some freedom in the way that the solutions and projects they create are organised.

For example, can I build one factory with the GAT that offers to create more than one type of solution, and conversely, can I build several factories and combine their output when unfolded into a single solution.

Another example: if I take the service factory and the smart client factory straight from MSDN, can I easily create one solution from the output of these two factories?

Thanks,

Scott.

Scott Simms

Hi Scott -

At the moment, a Guidance Package is essentially a unit of factory composition. A factory can contain multiple guidance packages (see the Web Service Software Factory as an example), and you can use multiple guidance packages (even if they are from different factories) in a single solution. So you could try building a solution with the Smart Client factory and enable the Data Access guidance package from the Service Factory.

While this capability works for any guidance package, whether it makes sense to combine any set of guidance packages in a single solution will depend on how the guidance packages were architected and what assumptions they make. Some combinations should make perfect sense, but others wouldn't work at all (for example combining guidance packages for Web and Smart Client development).

Tom

Tom Hollander

Thanks Tom,

I did notice that the Web Service factory is made of multiple guidance packages. It wasn't immediately obvious to me how they were being combined or referenced. Is there any doco you can point me to in the GAT?

Thanks,

Scott.

Scott Simms

Hi Tom,

I have noticed the following in the 'CreateASMXSolution' recipe. I'm guess that this activates the dependent package?

<!-- Other settings -->

<Action Name="EnableDACGeneratorGP" Type="EnableGuidancePackageAction" PackageName="DataAccessGuidancePackage">

Scott Simms

Hi Scott,

Yes, that action looks like it is programmatically enabling a package at runtime.

btw, there is no doco for composing packages in the GAT help/docos.

vga
reply 5

You can use google to search for other answers

 

More Articles

• warnings when I try to create guidance package
• Error installing GAT on VS 2005 (German)
• *.vstemplate for and *.csproj/*.vbproj must be kept in sync.
• Not able to create a new Guidance Package project
• T4 in a custom tool
• Register Guidance Package fails
• Is GAT/GAX compatible with non-English versions of Visual Studio ...
• Converting IDTWizard to GAT project and solution templates.
• configured attribute T3 - no property on action
• How do you pass arguments from previous wizard pages
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• GAT/GAX for VS2005 RTM released!
• Referencing a generic class with a t4 te
• Can you detect all installed packages?
• Trying to add a new class to the Referen
• Wizard size and colors
• System.Collections.Generic.KeyNotFoundEx
• Package version
• Changes to the ProjectName from a Wizard
• How to Add Fixed Assets in GAT?
• Recipe spawning on pretty much anything
• How do you add a using/reference to a t4
• RegexMatchStringConverter
• June 2006 CTP and Hands On Lab
• How can I Organize templates in the &quo
• Nested Project Templates

Hot Articles

• Registering guidance with the experiment
• How to generate class file from t4 templ
• How is GAT Package information persisted?
• Minor bug in VszWizard.FindAddItem
• Error 1001: Item has already been added.
• Extend the Meta-Guidance Package
• Smart Client Software Factory (Recipe Fr
• Custom UnfoldTemplate
• Extensibility with DSL
• Making compiling faster!!!
• CodeDom -Error when Run Recipe
• Download not available
• Referencing a generic class with a t4 te
• Input arguments for wizards
• How can you skip the UI when you run a r

Recommend Articles

• Code samples anywhere ?
• Cant' install "Guidance Automation
• New Editor or Not?
• Calling a recipe inside another recipe???
• Package version
• Issue passing input parameters to actions
• How to Add Fixed Assets in GAT?
• Advice needed: What technology/kit/etc t
• HoLPackage Registration menu disappear
• Is GAT/GAX compatible with non-English v
• Solution Folder Name
• Can you build a guidance package in VB?
• Can instal GAT (and MobileClient! ;( )
• Build Event programatically - set post b
• Guidance Package Visual Studio 2005 Proj