title: Adding MSBuild generated files to Visual Studio Solution Explorer
body: <p>I have a couple of MSBuild tasks that generate new files during the build. The custom targets add the files to the Compile ItemGroup after they are generated. So the build will work if my targets are ran, but I want to use the incremental building features of MSBuild and skip these targets if the files haven't been modified since the last build. But if the build skips the target the generated files won't be included.</p>
  
  <p>So I want to have the build add the files to the solution explorer. I realize I can add the files manually, and that might be the route I have to go, but I would really like to have the generated files added programmatically. </p>
  
  <p>I currently have a file called Custom.targets. It is included in every project and injects the new targets. I have tried including *.cs in the project, but that did not work.</p>