I created the ItemGroup shown in the code snippet.  I need to iterate
through this ItemGroup and run the EXEC command also shown in the code
snippet.  I cannot seem to get it to work.  The code returns this (note, the
Message is written 2 times (which is correct), but the EXEC Command is not
running correctly (the value is not seen in the error message.  I also need
the EXEC to execute twice or by however sections I define in the ItemGroup.

ERROR:
Encrypting WebServer appSettings section
Encrypting WebServer connectionStrings section
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef "" "
\\gaw\UI <file://gaw/UI>" -prov "RSACustomProvider"
Encrypting configuration section...
The configuration section '' was not found.


CODE SNIPPET:
<ItemGroup>
    <SectionsToEncrypt Include="Item">
      <Section>appSettings</Section>
    </SectionsToEncrypt>
    <SectionsToEncrypt Include="Item">
      <Section>connectionStrings</Section>
    </SectionsToEncrypt>
  </ItemGroup>

  <Target Name="EncryptWebServerWebConfigSections">
    <Message Text="Encrypting WebServer %(SectionsToEncrypt.Section)
section" />

    <Exec Command="$(AspNetRegIis) -pef
&quot;%(SectionsToEncrypt.Section)&quot;
&quot;$(DropLocation)\$(BuildNumber)\%(ConfigurationToBuild.FlavorToBuild)\$(AnythingPastFlavorToBuild)&quot;
-prov &quot;$(WebSiteRSACustomProviderName)&quot;"/>
  </Target>
_______________________________________________
oztfs mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/oztfs

Reply via email to