Introduction
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.
Setup
Create Project
Create new console project "TryConsoleApp"
Add below code on "Program.cs"
using System; namespace TryConsoleApp { class Program { static void Main(string[] args) { TryMethod(); } static void TryMethod() { #region HelloWorld Console.WriteLine("Hello World!"); #endregion HelloWorld } } }
Add new file "Readme.md" 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 try.net editor running
Summary
These are simple steps to make integrate try.net editor in browser, I hope you enjoyed learning. If you have any questions/feedback/issues, please write them in the comment box.