GitHub - sinai-dev/mcs-unity: Mono.CSharp with edits for Unity modding

This repository was archived by the owner on May 9, 2023. It is now read-only.

This is an edit of the official Mono.CSharp codebase with edits for Unity modding:

  • Backport C# 7 compiler code to .NET 3.5 (taken from https://github.com/kkdevs/mcs)
  • Remove dependency on System.XML as some games don't ship with it
  • Force Evaluator to import all memebers for code completion
  • Ignore access checks during compilation (by overwriting MemberSpec.IsAccessible)
  • Force the JIT to ignore access checks by marking the generated assembly as corlib_internal

Languages

  • C# 96.9%
  • C 3.0%
  • Other 0.1%