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

parameterEntry in parameters.xml lost when packaging with MSBuild

$
0
0

Hi,

I'm trying to create a Web Deploy package for my Web Application using custom parameters to configure my web.config file. I'm following the process described here:http://msdn.microsoft.com/en-us/library/ff398068.aspx (scroll down to the "Using Deployment Parameters for Web.Config File Settings" section).

The package is being created as part of the build (using MSBuild 4).

The package is generated successfully, but when I open the package.xml inside the .zip, I'm noticing that all my parameters that update web.config are losing the parameterEntry elements.

 For example, my parameters.xml in the project has this:

  <parameter name="LogLevel" description="Logging Level">
    <parameterEntry type="XmlFile" scope="obj\\Debug\\Package\\PackageTmp\\Web\.config$" match="/configuration/logger/level/@value" />
  </parameter>

And the parameters.xml in the .zip file looks like this:

  <parameter name="LogLevel" description="Logging Level" />

Any suggestions?

Thanks,

Mario


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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