diff --git a/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs b/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs index e8f59cc..e801107 100644 --- a/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs +++ b/src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs @@ -112,6 +112,10 @@ private static IAzureStorageCredentials CreateAzureStorageCredentials(AzureBlobS throw new InvalidOperationException($"{nameof(AzureBlobStoragePluginSettings.BlobUri)} is required when using {nameof(AzureBlobStoragePluginSettings.CredentialsType)}={settings.CredentialsType}"); } + // InteractiveClientStorageCredentials expects the directory to exist. + // TODO: Remove after the bug fix makes it into BXL. + Directory.CreateDirectory(settings.InteractiveAuthTokenDirectory); + return new InteractiveClientStorageCredentials(settings.InteractiveAuthTokenDirectory, settings.BlobUri, cancellationToken); } case AzureStorageCredentialsType.ConnectionString: