Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Tools.GenerateLocalResource
 

Tools.GenerateLocalResource

Hi,

I wrote a small recipe that runs through all GUI pages (.aspx, .ascx) and invokes the GenerateLocalResource command on the opened page.

First problem I found is that it takes a while to open a page in design mode (a prerequisite for GenerateLocalResource to work) and I do not know how to wait for the open to be complete before running this command. I tried the DocumentOpened event, but this fires to soon. The workaround I used is to have a separate recipe that has to be executed first, opening all documents in design mode. Is there a way to know when the designer has completed the processing of the page?

Secondly,is there a way to not haveGenerateLocalResource overwrite existing values in the resource files processed, i.e. it should only add non-existing keys and leave existingkey/translation pairs alone?

Thanks for any ideas.

Michel Liesmons.

mliesmons  Saturday, August 05, 2006 4:48 PM
This is a VS-specific question. You should try the VS extensibility forums instead.

Thanks.
kzu  Monday, August 07, 2006 4:27 AM
This is a VS-specific question. You should try the VS extensibility forums instead.

Thanks.
kzu  Monday, August 07, 2006 4:27 AM

Michel,

Did you ever find a solution to waiting for the designer to complete processing of a page?

Rob

Rob Whitehead  Wednesday, June 20, 2007 2:27 AM

You can use google to search for other answers

Custom Search

More Threads

• enable/disable - wizard navigation buttons
• DAL
• Couldn't find assembly "Microsoft.Practices.RecipeFramework.VisualStudio"
• Error installing Guidance Automation Extensions on VS2008 architecture edition
• Can we checkout file under ClearCase as SourceControl programmacticly
• Update guidance already installed
• Delete Extra Lines from Code using TextTemplateAction
• Create Add DataSet recipe
• What is the status of GAT? Why not use Codesmith?
• Testing a web site Using Visual studio 2005