I have a Visual Studio Project that is using a MSBuild task to generate some code files. (The basis are xml files, and the generated code is quite lengthy, but noting special, just a lot of boilerplate.)
I’m not sure how I should handle the generated files:
Not include generated files in the project, and use MSBuild to make sure they get compiled (by adding respective
<Compile...>
tags to the<Target>
).Include generated files in the project, but exclude them from source control.
Any other options? Are there issues with these options? Experiences so far? Recommendations or best practices?