I want to create two files, then have them be associated with each other (similar to if you added an .aspx file which then has child designer and code-behind files).
I know how it works in the project XML: http://mikehadlow.blogspot.com/2006/11/nested-files-with-dependentupon-in.html
...but I can't seem to find a way to do it programmatically. The closest thing I've seen is this: How do I programmatically refresh/reload a VS project after modifying the underlying file?
...which is incomplete and has elements that are unexplained (plus the author said he abandoned the approach altogether).
Does anyone know the proper way to forge such an association programmatically using the Visual Studio SDK?