Skip to content
← Back to Community
Can I use C# Packages (Nuget via .csproj, or dotnet restore)?
Profile icon
h
has Hacker Plan
LeeHarding

I'm using C# successfully in repl.it but since I can't seem to get packages working (i.e. Nuget) I'm a bit limited. For example, see:

https://repl.it/@LeeHarding/CSharp-HTTP-Server

I'd like to use Json.Net (a nuget package) for serializing JSON but can't seem to make it work through guesswork. I've added a .csproj file with the reference, but I don't think it's used (despite package managers being supported for other languages). Am I looking for something that simply isn't there?

It seems like .Net Core would be great on this platform, with it's streamlined build tools and cross-platform support.

Voters
Profile icon
Janik313
Profile icon
JoelMahon
Profile icon
GasparCorrarell
Profile icon
FatihKabak
Profile icon
Zehm
Profile icon
shaneooo
Profile icon
Scotch101Tape
Profile icon
mentallabyrinth
Profile icon
LeeHarding
Profile icon
ChristosLytras
Comments
hotnewtop
Profile icon
mat1

Repl.it currently doesn't support packages for C#. You can post it in the feedback board for a higher chance of it being added.

Please upvote my comment if it was helpful or useful to you. Thanks!

Profile icon
shaneooo

there are some tricks to getting dotnet working in a repl by basically downloading/installing the .net 5 sdk inside the repl
-- https://repl.it/@AMcC/dotnet5, https://repl.it/talk/share/Dotnet-50-on-repl-so-you-can-actuly-use-csharp-with-NuGet/82890
or compiling the sdk by source in the repl
-- https://repl.it/@Kudos/Dotnet-C#Program.cs

still pretty hacky (and slow) but it works