2016-05-31 9 views

答えて

0

更新日:Answer from Matias Karlssonが正しいです!これを使って!

ケーキがちょうど.NETベースのスクリプトです:あなたは、いくつかの機能を見つけることができない場合は、他のケーキの使用の

一つ、。 WebClient.DownloadFileメソッドを使用できます。例えば

var buildDir = new DirectoryPath("./target").MakeAbsolute(Context.Environment); 
var protocLink = "https://github.com/google/protobuf/releases/download/v2.6.1/protoc-2.6.1-win32.zip"; 
var protocArchive = buildDir.CombineWithFilePath("protoc-2.6.1-win32.zip"); 

Task("DownloadProtobuf") 
    .Does(() => 
    { 
     using (var wc = new System.Net.WebClient()) 
     { 
      wc.DownloadFile(protocLink, protocArchive.FullPath); 
     } 
    }); 
関連する問題