.NET C# repls are unable to run due to Kernel bug (workaround available)

Resolved
Resolved

We've now resolved the incident. Thanks for your patience.

Avatar for
Investigating

C# repls created from the .NET C# template are not able to run due to a Kernel bug. We are currently investigating options to fix this.

In the meantime, you may be able to run your repl by switching to the mono runtime using the following steps:

  1. Select "Show hidden files" in the file tree menu (three dots).

  2. In the replit.nix file, add the mono runtime:

{ pkgs }: {
  deps = [
    pkgs.mono
    pkgs.dotnet-sdk
    pkgs.omnisharp-roslyn
  ];
}
  1. In the .replit file, replace the run command by commenting out the dotnet run command and replacing it with mono:
#run = "dotnet run"
run = "set -e; csc main.cs; mono main.exe"
Avatar for
Began at:

Affected components
  • replit.com