Commits

Roger Kratz committed 3928d1b

auto copy of hibernate.cfg.xml if not exist

Comments (0)

Files changed (1)

NHibernate.Envers.SetForNet4Test/NHibernate.Envers.SetForNet4Test.csproj

     </ProjectReference>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <PropertyGroup>
+    <PreBuildEvent>if not exist $(ProjectDir)\hibernate.cfg.xml copy $(ProjectDir)\hibernate.cfg.xml.template $(ProjectDir)\hibernate.cfg.xml</PreBuildEvent>
+  </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">