Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/code/PublishPSResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public sealed class PublishPSResource : PSCmdlet
/// </summary>
[Parameter()]
[ValidateNotNullOrEmpty]
public string APIKey { get; set; }
public string ApiKey { get; set; }

/// <summary>
/// Specifies the repository to publish to.
Expand Down Expand Up @@ -844,7 +844,7 @@ private void PushNupkg(string outputNupkgDir, string repoUrl)
sourceProvider: new PackageSourceProvider(settings),
packagePath: fullNupkgFile,
source: publishLocation,
apiKey: APIKey,
apiKey: ApiKey,
symbolSource: null,
symbolApiKey: null,
timeoutSeconds: 0,
Expand All @@ -865,10 +865,10 @@ private void PushNupkg(string outputNupkgDir, string repoUrl)
{
if (e.Message.Contains("API"))
{
var message = String.Format("{0} Please try running again with the -APIKey parameter and specific API key for the repository specified.", e.Message);
var message = String.Format("{0} Please try running again with the -ApiKey parameter and specific API key for the repository specified.", e.Message);
ex = new ArgumentException(message);
var APIKeyError = new ErrorRecord(ex, "APIKeyError", ErrorCategory.AuthenticationError, null);
WriteError(APIKeyError);
var ApiKeyError = new ErrorRecord(ex, "ApiKeyError", ErrorCategory.AuthenticationError, null);
WriteError(ApiKeyError);
}
else
{
Expand Down