Visual Studio C ++ forcibly restores a specific file

Is there a way to get Visual Studio to rebuild a specific file in each assembly?

I have a version header with __DATE__and __TIME__, and I want it to be automatically updated for each version.

I can make a prebuild event and a batch file in a touchfile, just wondered if there is still an opportunity to do this?

+4
source share
3 answers

From superuser, try adding the prebuild command:

copy /b filename.ext +,,

filename.ext - / , . : , VStudio , , .

+1

.obj . .cpp .h. > "" > " " > " " > " " :

del $(TargetDir)source.obj
0

Source: https://habr.com/ru/post/1533631/


All Articles