2

so i am using this online website called https://repl.it/ , so I am actually learning C# in it so i wanted to try some packages and libraries but I don't know how to access them. So i was wondering if anyone could help.I have tried watching some you tube videos but I couldn't find any so please help me.

2 Answers2

2

For new C# repls that use .Net Core (as opposed to .Net Framework via Mono), this is quite straightforward.

  1. Create a C# Repl

New Repl Dialog

  1. Select the Packages Tab (icon looks like an isometric cube)

Packages Tab

  1. Search for the package you want and click the + button

Add a Package

  1. Alternatively, use the dotnet command line in the shell

dotnet command line

Paul Wheeler
  • 18,988
  • 3
  • 28
  • 41
-1

Repl.it currently doesn't support packages for C#. Only for Python and Js

Leandro Toloza
  • 1,655
  • 1
  • 6
  • 24
  • This is outdated information. It used to be that C# repls did not support package installation via the Replit.com UI and did not have either the dotnet CLI or nuget CLI installed. However, if you create a new C# repl today they now support package installation both via the UI and using the `dotnet nuget` command line. I'm just posting this as a comment for now because I don't have time to write up thorough instructions. – Paul Wheeler Dec 25 '21 at 05:58