I have just started to learn the Microsoft chat bot framework. I have added a Bot application in my VS 2013 professional. I am trying to create the basic chat bot application to calculate the length of the string passed to the bot. But i am getting the error on the CreateReply method as below:
if (activity.Type == ActivityTypes.Message)
{
ConnectorClient connector = new ConnectorClient(new Uri(activity.ServiceUrl));
int length = (activity.Text ?? String.Empty).Length;
Activity reply = activity.CreateReply($"your text {acivity.Text} have {lenght} characters");
await connector.Conversations.ReplyToActivityAsync(reply);
}
The above code does not recognize the "$" in CreateReply method.
I am using MS VS Professional 2013
Microsoft.Bot.Builder - 3.9.0.0
Please help me to fix this?
Thanks