2017-09-22 23 views
0

私はCAKE 0.21.1.0を使用します。ここでケーキ:必要な仮パラメータに対応する引数はありません

はコードの関連するスニペットです:

var teamCityLoggerZipFolderPath = @".\TeamCity\CustomLogger\VSTest.TeamCityLogger.zip"; 
var dllDestinationFolder = @"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions"; 

ZipAliases.Unzip(new FilePath(teamCityLoggerZipFolderPath), 
       new DirectoryPath(dllDestinationFolder)); 

アイデアは、フォルダを解凍し、dllDestinationFolderで、その内容を保存することです。 hereと​​3210を文書化して、私が見ることができるよう

There is no argument given that corresponds to the required formal parameter 'outputPath' of 'ZipAliases.Unzip(ICakeContext, FilePath, DirectoryPath)' 

限り、私が正しくFilePathDirectoryPathコンストラクタを呼び出しています:

しかし、私はこのエラーメッセージを見続けます。私はまた、私はZipAliases.Unziperroneouslyを呼び出すとは思わない。

私は間違っていますか?

答えて

2

Unzipは、グローバルメソッドまたはICakeContextの拡張メソッドとしてDSLを通じて使用できます。お返事のための

var teamCityLoggerZipFolderPath = @".\TeamCity\CustomLogger\VSTest.TeamCityLogger.zip"; 
var dllDestinationFolder = @"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions"; 

Unzip(teamCityLoggerZipFolderPath, dllDestinationFolder); 


Context.Unzip(teamCityLoggerZipFolderPath, dllDestinationFolder); 
+0

こんにちは、感謝:

だから、あなただけUnzipまたはContext.Unzip、一例として、それを呼び出すことができます。私はこれを '' Context.Unzip''に変更しましたが、エラーメッセージ "Error:1つ以上のエラーが発生しました。"(非常に便利です、私も知っています)。 "Unzip" '同様に。 –

+1

診断の冗長なケーキを起動してみてください。 https://stackoverflow.com/questions/38658660/how-to-enable-diagnostic-verbosity-for-cake – devlead

+0

エラーを修正しましたので、あなたの提案された変更がうまくいきました。 –