Code Snippet: Ensuring a file is in a project

Every couple of weeks, I’ll get a question about getting an arbitrary file on disk into a project in VS without asking VS to open in a document window directly. It seems to be pretty hard to find information for (when I needed to do it, it took a few email threads with various other…