DEV Community

Cover image for Installing dotnet try in MacOS and try .NET Offline
WilliamRamirez
WilliamRamirez

Posted on

Installing dotnet try in MacOS and try .NET Offline

I read that Try .NET is an interactive documentation generator for .NET Core. Best of all is open source.

I wanted to be able to run dotnet try samples in macOS that I found in Github and same time being able to build a tutorial.

Installed dotnet

Downloaded the current .Net Core and installed
https://dotnet.microsoft.com/download/dotnet/curren

Installed the dotnet try tool using the terminal

dotnet tool install --global Microsoft.dotnet-try --version 1.0.20474.1
Enter fullscreen mode Exit fullscreen mode

Cloned the repository

git clone https://github.com/dotnet/try-samples
Enter fullscreen mode Exit fullscreen mode

I just set the current directory to one of the sample tutorials and ran code below

dotnet try

Enter fullscreen mode Exit fullscreen mode

This launched the browser.

For more dotnet CLI commands I would recommend to visit Microsoft docs

Top comments (0)