windows = Gem.win_platform? 
to_exec = [File.dirname(__FILE__) + "/nuget.exe", ARGV.join(' ')]
to_exec.insert(0, "mono --runtime=v4.0") if ! windows
result = system(to_exec.join(' '))
exit 1 unless result