I'm using code generation and would like to automatically add the newly generated files into the project file after the generation is complete. If I add the files by modifying the project file, they don't get the plus icon next to them like when add them through the IDE. As a result, they don't get added to source control when I check the files in.
Is there a way to programmatically add a file to a project file in a way that will make it have the plus icon next to it to add it to source control?