I use CAKE 0.21.1.0.
Here is the relevant snippet of code:
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));
The idea is to unzip the folder and store its contents in dllDestinationFolder
.
However, I keep seeing this error message:
There is no argument given that corresponds to the required formal parameter 'outputPath' of 'ZipAliases.Unzip(ICakeContext, FilePath, DirectoryPath)'
As far as I can see, I am calling the FilePath
and DirectoryPath
constructors correctly, as documented here and here. I also don't think I am invoking ZipAliases.Unzip
erroneously.
What am I doing wrong?
Unzip is available through the DSL as either a global method or an extension method to ICakeContext.
So you could just invoke it as Unzip
or Context.Unzip
, example:
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);