G
G
Gennady2016-07-04 11:19:09
C++ / C#
Gennady, 2016-07-04 11:19:09

Microsoft Bot Framework swears at the $ symbol in the default code, why?

Studio 2013 Pro
When creating a project in the Microsoft Bot Framework, the code generated is
int length = (message.Text ?? string.Empty).Length;
// return our reply to the user
return message.CreateReplyMessage($"You sent {length} characters");
When compiling, it swears at the $ symbol.
What is the problem, I understand that this is most likely an argument for the CreateReplyMessage function, but I don’t understand why it swears.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#algooptimize #bottize, 2016-07-04
@Gena_User

Change to string format.

V
Vyacheslav Zolotov, 2016-07-04
@SZolotov

The very first line in Google: stackoverflow.com/questions/27093908/how-to-enable...
After installing the nugget, VS can highlight the code as an error, but it still builds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question