diff --git a/VectoCommon/VectoHashing/Impl/XmlHashProvider.cs b/VectoCommon/VectoHashing/Impl/XmlHashProvider.cs index a7ac61847266a843658fe92a5bc2fb2124cb1696..4a643d6177a601776315036d3de4d3609a8e4808 100644 --- a/VectoCommon/VectoHashing/Impl/XmlHashProvider.cs +++ b/VectoCommon/VectoHashing/Impl/XmlHashProvider.cs @@ -9,7 +9,7 @@ namespace TUGraz.VectoHashing.Impl { public static XmlDocument ComputeHash(XmlDocument doc, string elementId) { - if (doc == null /*|| doc.DocumentElement == null*/) { + if (doc == null) { throw new Exception("Invalid Document"); } var signedXml = new SignedXml(doc); diff --git a/VectoCommon/VectoHashing/VectoHashing.csproj b/VectoCommon/VectoHashing/VectoHashing.csproj index 6d9b6ec3cdbc5a222c22169950779735b09fdbc1..447ea68acbb57fd008b7d11ec4a13a17fb4cd3c8 100644 --- a/VectoCommon/VectoHashing/VectoHashing.csproj +++ b/VectoCommon/VectoHashing/VectoHashing.csproj @@ -76,6 +76,9 @@ <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PreBuildEvent>if $(ConfigurationName) == Release forfiles /p "$(ProjectDir)." /m "*.tt" /s /c "cmd /c echo Transforming @path && \"%25CommonProgramFiles(x86)%25\Microsoft Shared\TextTemplating\12.0\TextTransform.exe\" @file"</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">