Skip to content

Instantly share code, notes, and snippets.

@peterdalle
Last active August 29, 2015 14:20
Show Gist options
  • Save peterdalle/a9827137a40a1945a57e to your computer and use it in GitHub Desktop.
Save peterdalle/a9827137a40a1945a57e to your computer and use it in GitHub Desktop.
Create property for build date in VB.NET
@echo off
echo Build date %DATE%
REM Write to file: BuildDate.vb
echo ' This file is autogenerated by CreateBuildDate.bat. Changes here will be lost. > BuildDate.vb
echo Namespace Snuffbox.Configuration >> BuildDate.vb
echo Public Partial Class Settings >> BuildDate.vb
echo Public Shared ReadOnly Property BuildDate As String >> BuildDate.vb
echo Get >> BuildDate.vb
echo Return "%DATE% %TIME:~0,8%" >> BuildDate.vb
echo End Get >> BuildDate.vb
echo End Property >> BuildDate.vb
echo End Class >> BuildDate.vb
echo End Namespace >> BuildDate.vb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment