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
- Follow the official quick start guide for Bot Framework SDK.
- 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/
3. 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:
…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:
- 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
.
2. 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.
3. After downloading and installing the missing SDK, restart the VS Code and/or CLI. after that, the bot sample should work as expected.