Skip to content

Commit bff8455

Browse files
committed
Fixing VsixPublisher.
1 parent 195ef24 commit bff8455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PostSharp.Engineering.BuildTools/Build/Publishing/VsixPublisher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public override SuccessCode PublishFile(
3535

3636
if ( string.IsNullOrEmpty( Environment.GetEnvironmentVariable( EnvironmentVariableNames.VsMarketplaceAccessToken ) ) )
3737
{
38-
context.Console.WriteError( $"The VS_MARKETPLACE_ACCESS_TOKEN environment variable is not defined." );
38+
context.Console.WriteError( $"The {EnvironmentVariableNames.VsMarketplaceAccessToken} environment variable is not defined." );
3939
hasEnvironmentError = true;
4040
}
4141

@@ -49,7 +49,7 @@ public override SuccessCode PublishFile(
4949
var exe = $@"{vsSdkDir}\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe";
5050

5151
var args =
52-
$" publish -payload \"{file}\" -publishManifest \"{file}.json\" -personalAccessToken \"%{nameof(EnvironmentVariableNames.VsMarketplaceAccessToken)}%\"";
52+
$" publish -payload \"{file}\" -publishManifest \"{file}.json\" -personalAccessToken \"%{EnvironmentVariableNames.VsMarketplaceAccessToken}%\"";
5353

5454
if ( settings.Dry )
5555
{

0 commit comments

Comments
 (0)