Can I use C# Packages (Nuget via .csproj, or dotnet restore)?
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.

You are viewing a single comment. View All
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