Skip to content

Instantly share code, notes, and snippets.

@taylorc
Created December 1, 2013 10:40
Show Gist options
  • Select an option

  • Save taylorc/7731584 to your computer and use it in GitHub Desktop.

Select an option

Save taylorc/7731584 to your computer and use it in GitHub Desktop.
<Target Name="MakeWebConfig">
<ItemGroup>
<Namespaces Include="Mynamespace">
<Prefix>x</Prefix>
<Uri>urn:nhibernate-configuration-2.2</Uri>
</Namespaces>
</ItemGroup>
<MSBuild.ExtensionPack.Xml.XmlFile
TaskAction="UpdateElement"
File="%(BuildArtifactsDirWebConfig.FullPath)"
XPath="/configuration/x:hibernate-configuration/x:session-factory/x:property[@name='connection.connection_string']"
InnerText="$(KimHelperConnectionString)"
Namespaces="@(Namespaces)"
/>
</Target>
@taylorc
Copy link
Author

taylorc commented Dec 1, 2013

Modifiying NHibernate configuration settings connection string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment