views:

84

answers:

0

So, I'm writing a C# Add-In that generates C++ source files by weaving aspects into them using AspectC++. Now, I'd like to take those generated files and send them to the compiler instead of the original source... How would I do this within the Add-In? I've tried looking at the VCCLCompilerTool, VCCodeModel, and similar interfaces for an easy way to change the source directory to point at the new generated files. I suppose I could hack it to mark the old source files as being excluded from the build and then toggle it again in the post-build, but there's got to be a better way. Any ideas?

EDIT: No help? After taking a few stabs at it, I managed to get the files building but only with the hack I mentioned... and I'm still not completely sure it's working. Just got VS 2008, so I'm going to migrate everything over to that and post again.