Skip to content

Instantly share code, notes, and snippets.

@javafun
Forked from sayedihashimi/msbuild-get-date.proj
Created March 24, 2014 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javafun/9738996 to your computer and use it in GitHub Desktop.
Save javafun/9738996 to your computer and use it in GitHub Desktop.
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0"
DefaultTargets="Demo" >
<Target Name="Demo">
<PropertyGroup>
<CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd-mmss))</CurrentDate>
</PropertyGroup>
<Message Text="CurrentDate: $(CurrentDate)"/>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment