In Visual Studio 2012 (or below, preferably), is it possible to direct a newly created item to a particular folder in the filesystem instead of it going directly to the project root with a project item template?
The ProjectItem.Save() and SaveAs() methods throw an unimplemented exception.
The short answer is no: you can’t direct a file to a subfolder of your project using a vstemplate alone.
If you don’t mind writing a VS extension, you could try this approach which will create the file in the desired subfolder by replacing the “Add New Item” command in Solution Explorer with your own implementation:
The downside to this approach is that every new project item will be added to the project subfolder. To avoid this, you could add a new context menu command to the Solution Explorer instead of overriding “Add New Item”.