Build/add/ship build datetime with Visual Studio
-
Create folder
PropertiesinProjectDir -
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;