I'm writing a Visual Studio extension, which allows editing specific type of files in the project. This file serves as a description for further automated code generation (similarly to, say, Entity Framework).
I need the code generation to be performed prior to building of the project, which contains the description file. Code generation algorithm is (currently) placed inside the editor of the description file.
Is there a way to hook the building process to automatically perform some additional steps before actually building the project?
BeforeBuild
) and/or a custom build task that does the preprocessing might be a possible solution. Your extension could modify the project file to enable the functionality, like PostSharp. – Bakki