Randolf Arevalo on LinkedIn

Randolf Arevalo

technical journal

Creating a basic bot using Microsoft's Bot Framework


The basic bot instruction is detailed in Microsoft Learn page Create a bot with the Bot Framework SDK. I just detailed some more information on following it. Please note that the instruction below was written or follow as of January 2024 using VS Code / CLI and C#.

Prerequisite

Instruction

  1. Follow the official quick start guide for Bot Framework SDK.
  2. Once you are able to run the bot example. You should be able to see a screen like the screenshot below. the local address of the bot is http://localhost:3978/

![](images/creating-a-basic-bot-using-microsofts-bot-framework/Screenshot-2024-01-16-at-10.56.32 PM-1024x636.png)

  1. The Bot Framework Emulator can be downloaded in the release page should also work as-is. Here is the example output once you are able to run the emulator:

![](images/creating-a-basic-bot-using-microsofts-bot-framework/Screenshot-2024-01-16-at-11.11.12 PM-1024x272.png)

…And pretty much that’s the coverage of the basic bot tutorial from Microsoft Learn. But i do wanted to add some additional notes in case you stumble upon some road blocks.

Note #1:

Message “You must install or update .NET to run this application.” when you attempt to run the sample application.

Steps to take:

  1. Check the required SDK version of your application. In this example, it is version 6.0. It can be check by browsing through .vscode/launch.json.

![](images/creating-a-basic-bot-using-microsofts-bot-framework/Screenshot-2024-01-16-at-11.22.36 PM-1024x272.png)

  1. Check the dotnet sdk version installed using dotnet --list-sdks command. in the example below, the SDK v6 is missing, so i need to install it. You can download the sdk in the .NET download page.

![](images/creating-a-basic-bot-using-microsofts-bot-framework/Screenshot-2024-01-16-at-11.25.28 PM.png)

  1. After downloading and installing the missing SDK, restart the VS Code and/or CLI. after that, the bot sample should work as expected.

Enjoyed this post? Buy me a coffee ☕