Is there a way to programmatically add a source file to the project, given a file path?
I am trying to work on a visual studio project in sublime text 2. I can build using a custom build:
{
"cmd": ["c:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe"],
"working_dir": "${project_path:${folder:${file_path}}}/../Project"
}
I can link libraries using #pragma comment(lib, "path to library")
I can include the new source files using #include ""
but I cannot add new source file to the project.
Is there any code that could do that?
In the end Filburt gave a brilliant answer here: Is there a way to add source files to visual studio project from command-line?