Developer Docs

C#Bot IDE Setup - Visual Studio Code (Mac, Windows and Linux)

This guide will walk you through the process of setting up and using Visual Studio Code to work with a C#Bot application.

Required Articles

Setup VS Code

  1. Download and install the latest version of visual studio code for your OS from the Visual Studio website, and install according to the setup instructions.
  2. Once the installation completes, open VS Code and install the following plugins by pressing Ctrl+P (or Cmd+P on Mac) to open the command palette and copying and pasting the following install commands in, one by one.

    1. C# for Visual Studio Code - ext install ms-vscode.csharp
    2. Debugger for Chrome ext install msjsdiag.debugger-for-chrome

    vscode-1570749605964.gif

  3. Reload your VS Code instance by pressing Ctrl+Shift+P or (or Cmd+Shift+P on mac) and searching for Reload Window

    vscode-1570749894002.gif

Source Code

We assumed that by this point you have cloned your project somewhere on your file system.

  1. Use Ctrl+o (or Cmd+o on Mac) and Navigate to the root of your project before clicking ok.

    openedproject.jpg
  2. Save it as a workspace. Ctrl+Shift+p (or Cmd+Shift+p on Mac) to open the command palette and type “Workspace: Save Workspace as…” and select the item that matches

    csharp-reference-1570751553985.gif

  3. Enter your workspace name i.e. example_app.

Launching and debugging

  1. Setup your launch.json file.
    1. Click on the debug icon on the left hand side of the screen. debugicon.jpg
    2. Select the debug dropdown menu at the top of the screen. configuration.jpg
    3. Select ‘Add Configuration…’
    4. Choose .Net Core.
    5. Choose your project from the dropdown menu at the top of the screen.

    csharp-reference-1570755689870.gif

  2. Launch your application.
    1. Click on the debug icon on the left hand side of the screen. debugicon.jpg
    2. Select the green arrow at the top of the screen to start debugging. startdebugging.jpg
  3. You can now place break points and debug as usual

    csharp-reference-1570757073723.gif

Was this article helpful?

Thanks for your feedback!

If you would like to tell us more, please click on the link below to send us a message with more details.

Tool:

Generate

Iterate

Bot:

C#Bot

SpringBot

On this page

New to Codebots?

We know our software can be complicated, so we are always happy to have a chat if you have any questions.