Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

How can I set parameters that include the parameterValidation Element for Visual Studio 2010 Web Application Project package creation

$
0
0

I have a parameter that I wish to enable as a drop down list. When I add the following to the parameters.xml file within a Web Deployment Tool package a drop down list appears:

  <parameter name="SelectList" description="Select the value.">
    <parameterValidation type="Enumeration" validationString="value1,value2" />
    <parameterEntry kind="TextFile" scope="\\textfile.config$" match="PlaceHolderForSelectList" />
  </parameter>

 When this parameter is added to the Web Publishing Pipeline used by Visual Studio 2010 to create the package the following appears in the paramaters.xml file:

   <parameter name="SelectList" description="Select the value." defaultValue="">
    <parameterEntry kind="TextFile" scope="\\textfile.config$" match="PlaceHolderForSelectList" />
  </parameter>

 Notice that the <parameterValidation> element is not added.

The MsDeployDeclareParameters only seems to support the following:

<MsDeployDeclareParameters Include="ParameterName">

     <Kind></Kind>

     <Scope></Scope>

     <Match></Match>

     <Description></Description>

     <DefaultValue></DefaultValue>

     <Tags></Tags>

</MsDeployDeclareParameters>

So is there any way to add the parameterValidation entries?


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>