Adding the code to extract the archive in the first use of dotnet an

d added the first time use welcome text as well as some E2E tests.
This commit is contained in:
Livar Cunha 2016-06-09 20:52:49 -07:00
parent 5f220a1677
commit 69f43beccd
11 changed files with 222 additions and 42 deletions

View file

@ -336,16 +336,11 @@ namespace Microsoft.DotNet.Cli.Build
dotnet.Publish("--output", Path.Combine(Dirs.Output, "tools"), "--configuration", configuration)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "tools", "Archiver"))
.Execute()
.EnsureSuccessful();
.EnsureSuccessful();
var packagesToArchive = new List<string> { "-a", intermediateArchive };
var nuGetPackagesArchiveDirectory = new DirectoryInfo(nuGetPackagesArchiveFolder);
foreach (var directory in nuGetPackagesArchiveDirectory.GetDirectories())
{
packagesToArchive.Add(directory.FullName);
}
Cmd(archiver, packagesToArchive)
Cmd(archiver,
"-a", intermediateArchive,
nuGetPackagesArchiveFolder)
.Execute();
File.Copy(intermediateArchive, finalArchive);