Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Input arguments for wizards
 

Input arguments for wizards

Is there a way to retreive input arguments from within a wizard? Possibly through a reference to a configuration service or something like that?

Basically, I just want a reference to the current project from within my wizard (using a custom wizard page).  I have a recipe argument with this value, but how do I access that from within the wizard?

Thanks!
dwj  Tuesday, October 18, 2005 9:10 PM
Arguments are readily available to wizards. What are you exactly trying to achieve? I don't think I understand your "a reference to the current project from within my wizard" expression.

Basically you need:
- An argument of type EnvDTE.Project with the FirstSelectedProjectValueProvider (or something like that), that will set it to the current selection
- A field in the wizard referencing the project (if you want to show it, although I fail to realize why you would want that).

From an action, you simply declare the respective property and its corresponding <input> element in config, and you're done.

Does this help?
kzu  Thursday, October 20, 2005 2:27 AM
Arguments are readily available to wizards. What are you exactly trying to achieve? I don't think I understand your "a reference to the current project from within my wizard" expression.

Basically you need:
- An argument of type EnvDTE.Project with the FirstSelectedProjectValueProvider (or something like that), that will set it to the current selection
- A field in the wizard referencing the project (if you want to show it, although I fail to realize why you would want that).

From an action, you simply declare the respective property and its corresponding <input> element in config, and you're done.

Does this help?
kzu  Thursday, October 20, 2005 2:27 AM

You can use google to search for other answers

Custom Search

More Threads

• GAT on Visual Studio Release Candidate
• Support for the June or July CTP of VS .Net 2005?
• Download not available
• Web Client Software Factory: I cannot create a module with name Menu
• Extending Designer Toolbox
• Reality Check?
• Solution no longer GAT solution
• How can you provide input to AddProjectDependencyAction without a wizard?
• WCSF could not work after installing new version of GAT.
• Can't remove GAX/GAT on Vista