Automate creation of an empty Visual Studio solution
I am by no means an expert at shell scripting, I use cygwin on my windows machine because I want to force myself to learn a cross-platform console environment. A simple thing that I was able to accomplish, which I am pretty pround of is being able to create an empty Visual Studio solution file from cygwin/bash.
As a prerequisite I have an empty Visual Studio solution, a .gitignore, and an .hgignore file synced in my dropbox folder. I have three functions setup to create a fresh solution, one without version control initialized, one with git initialized and one with mercurial initialized. All functions will create a folder with the first parameter passed in (eg. "new-sln solution_name_here") and under that folder will copy the empty solution with the first parameter as the name of the .sln file.
- No version control initialized
- With Git initialization
- With Mercurial initialization
I love being able to automated simple tasks such as this. I hope you can find some of this helpful.





