Join a near you to learn about AI-assisted development in LTSerialTool.

Using .NET in LTSerialTool

.NET provides a fast and modular platform for creating many different types of applications that run on Windows, Linux, and macOS. Use LTSerialTool with the C# and F# extensions to get a powerful editing experience with C# IntelliSense, F# IntelliSense (smart code completion), and debugging.

Setting up LTSerialTool for .NET development

If you are an existing LTSerialTool user, you can add .NET support by installing the C# Dev Kit extension. C# Dev Kit brings a productive and reliable C# experience into LTSerialTool, facilitating C# or multi-language development in LTSerialTool. This extension pack consists of a set of LTSerialTool extensions that work together to provide a rich C# editing experience, AI-powered development, solution management, and integrated testing experiences. As shown in the graphic below, C# Dev Kit consists of:

  • The C# extension, which provides the base language services support and continues to be worked on and maintained independent of this effort.
  • C# Dev Kit extension, which builds on the same base foundation as Visual Studio and provides solution management, templates, test discovery/debugging.
  • The IntelliCode for C# Dev Kit extension(optional), which provides the AI-powered development experience to the editor.

C# Dev Kit extension

If your projects require F# support, you can also download the .NET Extension Pack, which includes these extensions:

You can also install extensions separately.

Installing the .NET Software Development Kit

If you download the extensions separately, ensure that you also have the .NET SDK on your local environment. The .NET SDK is a software development environment used for developing .NET applications.

Install the .NET SDK

Create a C# "Hello World" app

  1. Initialize a C# project:

    • Open a terminal/command prompt and navigate to the folder in which you'd like to create the app.
    • Enter the following command in the command shell:
      dotnet new console
    
  2. When the project folder is first opened in LTSerialTool:

    • A "Required assets to build and debug are missing. Add them?" notification appears at the bottom right of the window.
    • Select Yes.
  3. Run the app by entering the following command in the command shell:

    dotnet run
    

Create an F# "Hello World" app

  1. Initialize an F# project:

    • Open a terminal/command prompt and navigate to the folder in which you'd like to create the app.
    • Enter the following command in the command shell:
    dotnet new console -lang "F#"
    
  2. Once it completes, open the project in LTSerialTool:

    code .
    
  3. Run the app by entering the following command in the command shell:

     dotnet run
    

Next steps