Try .NET is an embeddable code runner that enables you to explore .NET in the browser. Use Try .NET to light up your online learning experiences and documentation.


  1. Visual Studio 2019
  2. .Net Core SDK
  3. .Net Global Tool

Create Project

Create new console project "TryConsoleApp"

Add below code on "Program.cs"
using System;
namespace TryConsoleApp
   class Program
       static void Main(string[] args)
        static void TryMethod()
            #region HelloWorld
            Console.WriteLine("Hello World!");
            #endregion HelloWorld

Add new file "" with below code
```cs --region HelloWorld --source-file .\Program.cs --project .\TryConsoleApp.csproj

Run project

Go to Tool >> Command Line >> Developer Command Prompt 
and run command "dotnet try"

Browser will have your editor running


These are simple steps to make integrate editor in browser, I hope you enjoyed learning. If you have any questions/feedback/issues, please write them in the comment box. 
Previous Post Next Post