Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
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
3 changes: 2 additions & 1 deletion libraries/Microsoft.Bot.Builder.Dialogs/Prompts/Prompt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public Prompt(string dialogId, PromptValidator<T> validator = null)
var recognized = await OnRecognizeAsync(dc.Context, state, options, cancellationToken).ConfigureAwait(false);

// Increment attempt count
state[AttemptCountKey] = (int)state[AttemptCountKey] + 1;
// Convert.ToInt32 For issue https://github.com/Microsoft/botbuilder-dotnet/issues/1859
state[AttemptCountKey] = Convert.ToInt32(state[AttemptCountKey]) + 1;

// Validate the return value
var isValid = false;
Expand Down