Get rid of the timestamp in the source files generated by CodeFluent

CodeFluent includes a time-stamped comment in all generated .cs files:

// CodeFluent Entities generated (http://www.softfluent.com). Date: Thursday, 05 September 2013 14:34. 

The timestamp is restored regardless of whether the files were changed or not. This is a problem because TFS will see this comment as changing source files during validation (which is normal). Then we get all the created files included in each set of changes after each generation of code.

Is there any way to get rid of this?

+4
source share
1 answer

CodeFluent Entities provides the ability to remove the "date and time of generation" at startup. The option can be defined at the manufacturer level or at the project level (applies to all your manufacturers).

  • At the manufacturer level

Select a manufacturer and set the productionFlags property to "RemoveDates"

 <cf:producer productionFlags="Overwrite, RemoveDates"> </cf:producer> 
  • At the project level

Select the project and set the defaultProducerProductionFlag property (on the Advanced tab) to RemoveDates

 <cf:project defaultProducerProductionFlags="Overwrite, RemoveDates"> 

The procedure is explained on the Codefluent Entities blog: http://blog.codefluententities.com/2013/04/22/remove-the-current-date-and-time-to-generated-files/

+3
source

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


All Articles