Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How to Validate Custom Argument
 

How to Validate Custom Argument

Hello everyone,

I have one more question,

I am using Software Factory Toolkit.

I have Create a custom argument in my CreateSolution.xml file

************************CreateSolution.xml***************************************

<Argument Name="FSE4Framework" Type="System.String" >
<ValueProvider Type="ExpressionEvaluatorValueProvider" Expression="D:\Framework" />
</Argument>

********************************************************************************

My question is How could,I validate this argument.Like If I have No E drive at my system and user entered E:\Framework .Then further processing will be stop and and the user is forced to give correct name.

I get lots of helps through this forums

Thanks to everyone in this forums.

Monesh  Wednesday, June 13, 2007 10:37 AM
Hi Monesh,

You can use a TypeConvert (which is a concept not introduced by GAX but used by it) to limit the possible valid values for an argument. In this case your type converter should accept string types but only string types that are valid file/folder paths.

Please take a look at the docs for TypeConverters and let us know if you have any further questions.

thanks,
-Victor.
vga  Wednesday, June 13, 2007 12:55 PM
Hi Monesh,

You can use a TypeConvert (which is a concept not introduced by GAX but used by it) to limit the possible valid values for an argument. In this case your type converter should accept string types but only string types that are valid file/folder paths.

Please take a look at the docs for TypeConverters and let us know if you have any further questions.

thanks,
-Victor.
vga  Wednesday, June 13, 2007 12:55 PM

You can use google to search for other answers

Custom Search

More Threads

• Add Entity Framework model to Project with GAT
• Problem installing GAT
• Recipe Framework Error
• updating receipe arguments in a "ForEach" action
• Get StrongDataSet reference
• Discovering "out" parameters in source code?
• Add .CS file to a Project
• Toolkit for GAX/GAT released!!
• Getting a handle on DTE from a library class.
• Unable to add reference to project