This visual studio extension provides a custom tool that builds and runs a selected project in the current solution and asks it to generate code. To use this custom tool, just enter "ProjectInSolution" in the "Custom Tool" edit field and select the project in the "Generator Project" drop down field of the file used to generate code from as shown in the following screenshot: Now, whenever the file is saved, the selected project will be built if neccessary and started. The content of the file then will be written to standard input. After that, the custom tools reads everything from standard output and writes it to the generated file. If the main method of the generator project looks like this: this will be the result: |