I am trying to create a web.config conversion file that changes the list of appSettings to false if the name contains the word "Config".
<add name="Config.Showlog" value ="true" />
Conversion file has
<appSettings>
<add xdt:Transform="SetAttributes(value)"
value="false"
xdt:Locator="Condition(starts-with(@name,'Config')"/>
</appSettings>
Visual Studio 2010 shows an error:
Condition Requires exactly 1 argument.
I also tried this with Xpath as an attribute for the locator xdt:and got the same error. The problem seems to be related to how VS 2010 parses the expression inside Condition()or Xpath().
How can you get around this problem?
source
share