Build/add/ship build datetime with Visual Studio
-
Create folder
Properties
inProjectDir
-
In tab Resources of project properties, add a new text file
BuildDateTime
-
Add command to pre-build event
echo %date% %time% > "$(ProjectDir)\Resources\BuildDateTime.txt"
- In code retrieve
string x = Properties.Resources.BuildDateTime;