public void Init() { _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget"); Folder.EnsureDeleted(_nugetFeedFolder); Folder.EnsureExists(_nugetFeedFolder); var version10 = new Version(1, 0); TestPackages.CopyHostPackageTo(_nugetFeedFolder); TestPackages.CopyTest10To(_nugetFeedFolder); _basePath = Folder.Combine(_nugetFeedFolder, "extracted"); _context = new DeploymentTaskContext() { Folders = new ServiceFolders { DeployFolder = (FullPath)_basePath, }, KeepOnUpdate = new FileList(new string[0]), PackageDetails = new PackageDetails( "Codestellation.Galaxy.Host", _nugetFeedFolder, version10) }; _context.Parameters.Version = version10.ToString(); new InstallPackage().Execute(_context); }
public void CreateFeed() { _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget"); Folder.EnsureDeleted(_nugetFeedFolder); Folder.EnsureExists(_nugetFeedFolder); TestPackages.CopyTest10To(_nugetFeedFolder); TestPackages.CopyTest11To(_nugetFeedFolder); }
public void Init() { _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget"); Folder.EnsureDeleted(_nugetFeedFolder); Folder.EnsureExists(_nugetFeedFolder); TestPackages.CopyHostPackageTo(_nugetFeedFolder); TestPackages.CopyTest10To(_nugetFeedFolder); _targetPath = Path.Combine(_nugetFeedFolder, "extracted"); }
public void Init() { _nugetFeedFolder = Path.Combine(Environment.CurrentDirectory, "testnuget"); Folder.EnsureDeleted(_nugetFeedFolder); Folder.EnsureExists(_nugetFeedFolder); var version10 = new Version(1, 0); TestPackages.CopyHostPackageTo(_nugetFeedFolder); TestPackages.CopyTest10To(_nugetFeedFolder); _basePath = Folder.Combine(_nugetFeedFolder, "extracted"); var packageDetails = new PackageDetails("Codestellation.Galaxy.Host", _nugetFeedFolder, version10); var installPackage = new InstallPackage(_basePath, packageDetails, FileList.Empty); var stringWriter = new StringWriter(); _context = new DeploymentTaskContext(stringWriter); installPackage.Execute(_context); }