Hi,
I am currently trying to set up our project to be able to use webdeploy 3.0. In our web.config we have added the nHibernate 2.2 configuration, which includes the nhibernate namespace. When I try to replace the connection string using the parameter replacement then it will not change anything unless I remove the namespace. (My XPath is correct, I have tried removing the xmlns attribute and it works).
Web.Config hibernate section as follows:
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.connection_string">
[connectionString]
</property>
</session-factory>
</hibernate-configuration>
Parameter.xml entry as follows:
<parameter name="nHibernate Connection String" description="Please provide the nHibernate connection string." defaultValue="myConnectionString" tags="">
<parameterEntry kind="XmlFile" scope="obj\\Debug\\Package\\PackageTmp\\Web\.config$" match="/configuration/hibernate-configuration/session-factory/property[@name='connection.connection_string']/text()" />
</parameter>
MyProject.SetParameters.xml entry:
<setParameter name="nHibernate Connection String" value="newConnectionString" />
Does anyone know how I would be able to replace the connection string value in my hibernate config, other than using wildcard matches in the XPath?