Opening Visual Studio with Rake
There are probably several ways to do this, here’s how I did.
rakefile.rb:
DIR = File.dirname(__FILE__)
desc "Starts Visual Studio with the project solution."
task :vs do
sln = "#{DIR}/src/project.sln".gsub! '/','\\'
system( "start #{sln}" )
end
That’s it! From a cmd shell type “rake vs” and Visual Studio will start with the specified solution file.