public async Task<ProcessResult> PackPackageAsync(string nuspecFileFullPath, string nuspecDir) { var arguments = new List<string> { PackCommandString, nuspecFileFullPath, OutputDirectorySwitchString, nuspecDir }; return await InvokeNugetProcess(arguments, Path.GetFullPath(Path.GetDirectoryName(nuspecFileFullPath))); }
private async Task <string> CreatePackageWithTargetFrameworkInternal(string nuspecFileFullPath, string frameworkVersion) { string nuspecDir = Path.GetDirectoryName(nuspecFileFullPath); AddContent(nuspecDir, frameworkVersion); AddLib(nuspecDir, frameworkVersion); var commandlineHelper = new CommandlineHelper(TestOutputHelper); await commandlineHelper.PackPackageAsync(nuspecFileFullPath, nuspecDir); string[] nupkgFiles = Directory.GetFiles(nuspecDir, "*.nupkg").ToArray(); return(nupkgFiles.Length == 0 ? null : nupkgFiles[0]); }