Compilation Date

  • Thread starter Thread starter Patrick
  • Start date Start date
P

Patrick

Hello

Is there a way to get the compilation date of a file.. or build in a
variable at compilation with the current date in c# (not the file-date!).
somethin like #define date ...??

Thanks
Patrick
 
Would an assembly attribute work? You could set that in the
AssemblyInfo.cpp in your project.

//

// General Information about an assembly is controlled through the following

// set of attributes. Change these attribute values to modify the
information

// associated with an assembly.

//

[assembly:AssemblyTitleAttribute("")];

[assembly:AssemblyDescriptionAttribute("")];

[assembly:AssemblyConfigurationAttribute("")];

[assembly:AssemblyCompanyAttribute("")];

[assembly:AssemblyProductAttribute("")];

[assembly:AssemblyCopyrightAttribute("")];

[assembly:AssemblyTrademarkAttribute("")];

[assembly:AssemblyCultureAttribute("")];
 
Yes, this would work, but that way I have to change it manual each time
manually...


January Smith said:
Would an assembly attribute work? You could set that in the
AssemblyInfo.cpp in your project.

//

// General Information about an assembly is controlled through the following

// set of attributes. Change these attribute values to modify the
information

// associated with an assembly.

//

[assembly:AssemblyTitleAttribute("")];

[assembly:AssemblyDescriptionAttribute("")];

[assembly:AssemblyConfigurationAttribute("")];

[assembly:AssemblyCompanyAttribute("")];

[assembly:AssemblyProductAttribute("")];

[assembly:AssemblyCopyrightAttribute("")];

[assembly:AssemblyTrademarkAttribute("")];

[assembly:AssemblyCultureAttribute("")];

Patrick said:
Hello

Is there a way to get the compilation date of a file.. or build in a
variable at compilation with the current date in c# (not the file-date!).
somethin like #define date ...??

Thanks
Patrick
 
Back
Top