Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Changing the folder of custom tool generated files
 

Changing the folder of custom tool generated files

Hi,

I have some text templates (.tt) and I am converting them to .cs files using a custom tool. I want the .cs files to be generated in another folder and not the current projectfolder. The <#@ output #> directive doesnt have any option to set this path. Is there a way of specifying thepath where .cs files can be generated.

I also wanted to know if we could have an easier method like giving a realtive path in CSharp.tt to change the file path.

Thanks,

Apurva

apurva1  Wednesday, August 22, 2007 8:17 PM
Hi Apurva,

Which tool are you using to make the transformation? If you're using any of the default actions provided in the gax library, there you can specify where you want to add the project item, for example the AddItemFromStringAction.

If you're using the default "Custom Tool" to make the transformation so there are no way to do what you want.
Jose Escrich  Thursday, August 23, 2007 9:16 PM
Hi Apurva,

Which tool are you using to make the transformation? If you're using any of the default actions provided in the gax library, there you can specify where you want to add the project item, for example the AddItemFromStringAction.

If you're using the default "Custom Tool" to make the transformation so there are no way to do what you want.
Jose Escrich  Thursday, August 23, 2007 9:16 PM

Hi,

I am using the TextTemplatingFileGenerator custom tool.

Thanks,

Apurva

apurva1  Friday, August 24, 2007 1:24 PM

You can use google to search for other answers

Custom Search

More Threads

• Assembly reference in .t4 file
• How to execute actions after solution template was unfolded
• how begin?.. please help, I'm lost
• GAX/GAT Custom Menu won't update after second Build/Registration
• System.Web.Extensions
• Preselecting wizard items
• Wizard data not replacing arguments correctly?
• Parse referenced assemblies
• How to modify the SCSF Add View (with presenter) generated code
• Resource1.Designer.cs not craeted correctly?