void RegisterNuGetSource(MachineWideInstallation mwInstl) { var toolsPath = EnvironmentRepository.GetToolsPath(); var name = "Prig Source"; mwInstl.OnNuGetSourceRegistering(name, toolsPath); var stdout = NuGetExecutor.StartSourcing(name, toolsPath); mwInstl.OnNuGetSourceRegistered(stdout); }
void CreateNupkg(MachineWideInstallation mwInstl) { var toolsPath = EnvironmentRepository.GetToolsPath(); var pkgName = "Prig"; mwInstl.OnNuGetPackageCreating(pkgName); var nugetPackageFolder = Path.Combine(toolsPath, "NuGet"); var stdout = NuGetExecutor.StartPacking(Path.Combine(nugetPackageFolder, "Prig.nuspec"), toolsPath); mwInstl.OnNuGetPackageCreated(stdout); }