From 5ed1de32f6b64b5b312d2010c700daf4510be5f5 Mon Sep 17 00:00:00 2001 From: Amber Erickson Date: Thu, 5 Aug 2021 11:43:09 -0700 Subject: [PATCH] Change 'APIKey' to 'ApiKey' --- src/code/PublishPSResource.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/code/PublishPSResource.cs b/src/code/PublishPSResource.cs index 221f731dd..dbdc87032 100644 --- a/src/code/PublishPSResource.cs +++ b/src/code/PublishPSResource.cs @@ -34,7 +34,7 @@ public sealed class PublishPSResource : PSCmdlet /// [Parameter()] [ValidateNotNullOrEmpty] - public string APIKey { get; set; } + public string ApiKey { get; set; } /// /// Specifies the repository to publish to. @@ -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, @@ -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 {