Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > $(TargetDir) available in Recipe node?
 

$(TargetDir) available in Recipe node?

Hi,

In the GAT.xml file, is there a way to get the targetDir, like $(TargetDir) can be used in post-build actions?

More general: Is there a list of out-of-the-box available variables. Is there an xml reference in general?

Greetz,
Owin
Owin  Wednesday, December 06, 2006 4:29 PM
Hi Owin,

You can check other macros supported by VS by going right clicking on a project, selecting Properties, and then the "Build Events" tab, then click on "Edit pre-build..." button and you'll see a list of available key macros.

I'm pretty sure this list should be on msdn too somewhere but I don't have a URL handy...

HTH,
-Victor.
vga  Wednesday, December 06, 2006 5:22 PM
Hi Owin,

Sorry, I thought you were after using this macros in the build process. You can't use these macros in the a guidance package manifest.

What you should do is to write a custom ValueProvider that retrieves that directory for you. Let me know if you need any help in writing it.

HTH,
-Victor.
vga  Thursday, January 04, 2007 4:21 PM
Hi Owin,

You can check other macros supported by VS by going right clicking on a project, selecting Properties, and then the "Build Events" tab, then click on "Edit pre-build..." button and you'll see a list of available key macros.

I'm pretty sure this list should be on msdn too somewhere but I don't have a URL handy...

HTH,
-Victor.
vga  Wednesday, December 06, 2006 5:22 PM

Hi,

 

I've tried some of the macros (TargetDir and ProjectDir) like this, but got the error at the bottom:

<Arguments>

<Argument Name="OwinTest">

 <ValueProvider Type="Evaluator" E xpression = "$(ProjectDir)" />
(There is a space in E xpression, because for some reason you can't use the whole word in this site...It vanishes)

</Argument>

</Arguments>

Error:

 An exception occurred during the binding of reference or execution of recipe CreateSolution. Error was: The following arguments are required and don't have values: OwinTest. Can't continue execution..

 

 

Owin  Thursday, January 04, 2007 2:27 PM
Hi Owin,

Sorry, I thought you were after using this macros in the build process. You can't use these macros in the a guidance package manifest.

What you should do is to write a custom ValueProvider that retrieves that directory for you. Let me know if you need any help in writing it.

HTH,
-Victor.
vga  Thursday, January 04, 2007 4:21 PM

You can use google to search for other answers

Custom Search

More Threads

• ABSF with Data Access Application Block
• How to create a folder structure before template unfolding?
• Will GAT/GAX be avalible for VS 2008?
• Slow loading Guidance Navigator
• Anybody has an idea how to specify a icon file for a recipe. (Please help)
• Is it possible to call an action from a Converter ?
• Urgent - Create a new Item (Form)
• GAX installed but not showing in VS 2008
• Getting a handle on DTE from a library class.
• guidance package with custom project extension