I have a VS project that contains:
a pre-build action running
TextTransform
on atemplate.tt
to generategenerated.cs
generated.cs
listed as one of the files to compile (i.e. in the list of project files)
When I build the project, the pre-build action is executed, generated.cs
is re-created, but VS compiles the previous version of generated.cs
(which I guess it loaded in memory when the build process started).
How to make the build use the new version of generated.cs
(i.e. the one generated in the pre-build action)? How to force the build order?
Note that the text transformation input is dynamic and hence cannot be done in design time.