Home > Developing Using CodeFluent Entities, Producers > Remove the current date and time to generated files

Remove the current date and time to generated files

CodeFluent Entities adds some information to generated files every time a code production is run.
This information contains general information (for all producers) and specific information (for each producer):

  • The CodeFluent Entities Build version.
  • The current date and time.
  • The Runtime version.
  • The Target version.
  • The Culture.
  • The Encoding.
  • – …


Generation information

Generation information

You might want to avoid CodeFluent Entities to add some of this information to generated code.
For example, each time a code production is made almost all generated files will have a new “generation date” even if the generated code is the same.
When using a source control system you will need to checkin/commit every single file even if  only the generation date has changed. This can lead to conflicts and unnecessary merges.


File Diff

File Diff


Well, CodeFluent Entities provides an option to remove the “generation date and time” when running producers.  
This options is found in the “advanced properties tab” at the project level  (right click on the CodeFluent Entities project > Properties).

Set the defaultProducerProductionFlag flag to RemoveDiffs to avoid having the “date and time” on generated files.


Default Producer Production Flags

Default Producer Production Flags


Since the CodeFluent Entities build 702 (march 2013) the RemoveDiffs production flag option now also removes the Runtime Version value added to generated files.



Pablo Fernandez Duran

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s