You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`EfcptDetectGeneratedFileChanges`|`false`| Detect changes to generated `.g.cs` files and trigger regeneration. **Warning**: When enabled, manual edits to generated files will be overwritten. |
-**MSBuild property overrides** - All `EfcptConfig*` properties set in the .csproj
139
144
-**efcpt.renaming.json** - Custom naming rules
140
145
-**T4 templates** - All template files and their contents
146
+
-**Generated files** (optional) - When `EfcptDetectGeneratedFileChanges=true`, includes fingerprints of generated `.g.cs` files
141
147
142
-
Note: The fingerprint is computed after MSBuild property overrides are applied, so changing an override property (like `EfcptConfigRootNamespace`) will trigger regeneration.
148
+
**Important**: The fingerprint is computed after MSBuild property overrides are applied, so changing any `EfcptConfig*` property (like `EfcptConfigRootNamespace`) will automatically trigger regeneration.
143
149
144
150
All hashing uses XxHash64, a fast non-cryptographic hash algorithm.
→ Different from stored fingerprint (overrides changed)
175
+
→ Regenerate models
176
+
→ Store new fingerprint
177
+
```
178
+
179
+
### Regeneration Triggers
180
+
181
+
The following changes will automatically trigger model regeneration:
182
+
183
+
1.**Library upgrade** - When you update the JD.Efcpt.Build NuGet package
184
+
2.**Tool version change** - When you change `<EfcptToolVersion>` in your .csproj
185
+
3.**Database schema change** - Tables, columns, or relationships modified
186
+
4.**Config file change** - efcpt-config.json or efcpt.renaming.json modified
187
+
5.**MSBuild property change** - Any `<EfcptConfig*>` property changed in .csproj
188
+
6.**Template change** - T4 template files added, removed, or modified
189
+
7.**Generated file change** (optional) - When `<EfcptDetectGeneratedFileChanges>true</EfcptDetectGeneratedFileChanges>` is set
190
+
191
+
### Detecting Manual Edits (Optional)
192
+
193
+
By default, the system **does not** detect changes to generated files. This prevents accidentally overwriting manual edits you might make to generated code.
194
+
195
+
To enable detection of changes to generated files (useful in some workflows):
**Warning**: When enabled, any manual edits to `.g.cs` files will trigger regeneration, overwriting your changes. Only enable this if your workflow never involves manual edits to generated code.
0 commit comments