$(MSBuildProjectDirectory)\..\
$([System.IO.Path]::Combine($(SolutionDir), "Tools"))
$(NuGetToolsPath)\NuGet.exe
$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))
$([System.IO.Path]::Combine($(SolutionDir), "packages"))
$(TargetDir.Trim('\\'))
http://www.myget.org/F/f05dce941ae4485090b04586209c8b08/
true
"https://go.microsoft.com/fwlink/?LinkID=230477;$(PreReleasePackagesUrl)"
false
false
"$(NuGetExePath)" install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)" > NUL
"$(NuGetExePath)" pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols
VerifyPackages;
$(BuildDependsOn);
RestorePackages;
$(BuildDependsOn);
$(BuildDependsOn);
BuildPackage;
p.Uri.ToString().ToLowerInvariant() == "/tools/nuget.exe").Single();
using (Stream inputStream = exePart.GetStream(FileMode.Open, FileAccess.Read))
using (Stream outputStream = File.Create(OutputFilename)) {
byte[] buffer = new byte[16384];
while (true) {
int read = inputStream.Read(buffer, 0, buffer.Length);
if (read == 0) {
break;
}
outputStream.Write(buffer, 0, read);
}
}
}
return true;
}
catch (Exception ex) {
Log.LogErrorFromException(ex);
return false;
}
finally {
if (zipTempPath != null) File.Delete(zipTempPath);
}
]]>