void InstallNug(Directory libDir, NugDirectory nug) { var targetPackageDir = libDir.GetChildDirectory(nug.NugName); _fileSystem.CreateDirectory(targetPackageDir); foreach (var file in nug.GetFiles()) { var fileWriteTo = targetPackageDir.GetChildFile(file.Name.GetName()); _fileSystem.Copy(file.Name.GetPath(), fileWriteTo.Name.GetPath()); } }
public DotNetLibDirectory(NugDirectory nug) { }