Skip to content

Commit

Permalink
Fixing publishing of symbols. Fixing issue# 3518 (#3519)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabhijeet authored Jul 27, 2017
1 parent f3ba83b commit 492e814
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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, "<ApiKey>");
}
else
{
Expand Down

0 comments on commit 492e814

Please sign in to comment.