Pablo Galiano : Code Snippets and GAX

Subscriptions

<July 2010>
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

News

Subscribe to Pablo Galiano by Email

Post Categories

Code Snippets and GAX

One GAX feature that is not well known is that we can define code snippets as part of our guidance package.
These code snippets will be installed when we register the guidance package and they will be available at the product level.
Once we create a guidance package solution using GAT the following structure is created:

SolExt.JPG


All the snippets must be under the \Snippets\LANGUAGE\PACKAGE_CAPTION folder.

One important thing is that Caption for the guidance package located in the main manifest MUST match the name for the parent folder on the snippets structure.

CaptionMatch.JPG

If the names doesn't match the code snippets will no be installed when we register the guidance package.

Once we register the guidance package and we create a product we can start using the codesnippets:

csusage.jpg

Pablo

posted on Thursday, January 11, 2007 5:26 AM by pga

# re: Code Snippets and GAX @ Tuesday, May 08, 2007 9:19 PM

Hi,

I tried to create a sample guidance package using the toolkit and added an existing code snippets from visual studio just to see if it does work after registering the package but unfortunately I could not see any other code snippets under my package except for the one in the sample.snippets.

Am I doing something wrong? I thought this should work out of the box? Do you have a sample guidance package that had custom code snippets in it that I could refer to?

You immediate help is very much appreciated.

Thank you.

Ramil