From 492e8149037c22010766d89ec3cf78ef612cf959 Mon Sep 17 00:00:00 2001 From: Abhijeet Date: Thu, 27 Jul 2017 13:40:37 -0700 Subject: [PATCH] Fixing publishing of symbols. Fixing issue# 3518 (#3519) --- .../Build.Tasks/ExecProcess/NugetExec.cs | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs b/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs index b6d1c15edf1a..f4d23487f6ae 100644 --- a/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs +++ b/tools/Microsoft.WindowsAzure.Build.Tasks/Build.Tasks/ExecProcess/NugetExec.cs @@ -32,22 +32,6 @@ public class NugetExec : ShellExec public string ApiKey { get; set; } - //{ - // get - // { - // if(string.IsNullOrEmpty(_apiKey)) - // { - // _apiKey = Constants.NugetDefaults.DEFAULT_API_KEY; - // } - - // return _apiKey; - // } - - // set - // { - // _apiKey = value; - // } - //} public string PublishToPath { @@ -124,8 +108,8 @@ public NugetPublishStatus Publish(string nupkgPath) string displayArgs = string.Empty; if(nupkgPath.Contains("symbols")) { - args = string.Format("push {0} -source {1} -NonInteractive -Timeout {2} -SymbolSource {3}", nupkgPath, PublishSymbolToPath, Constants.NugetDefaults.NUGET_TIMEOUT, PublishSymbolToPath); - displayArgs = string.Format("{0} {1}", NugetExePath, args); + args = string.Format("push {0} -source {1} -NonInteractive -Timeout {2} -SymbolSource {3} -ApiKey {4} ", nupkgPath, PublishSymbolToPath, Constants.NugetDefaults.NUGET_TIMEOUT, PublishSymbolToPath, ApiKey); + displayArgs = string.Format("push {0} -source {1} -NonInteractive -Timeout {2} -SymbolSource {3} -ApiKey {4} ", nupkgPath, PublishSymbolToPath, Constants.NugetDefaults.NUGET_TIMEOUT, PublishSymbolToPath, ""); } else {