Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit cf12bebb authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

adding pre-build command to set version number for release builds

parent 4fb22323
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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 &amp;&amp; \"%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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment