Skip to content

Commit

Permalink
dotnet: Add auto references for common DLLs
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Jul 1, 2024
1 parent a818e54 commit 965780b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MCGalaxy/Modules/Compiling/CompilerFrontends.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ public sealed class CSCompiler : ICompiler
}
#else
protected override ICompilerErrors DoCompile(string[] srcPaths, string dstPath) {
List<string> referenced = ProcessInput(srcPaths, "//");
List<string> referenced = ProcessInput(srcPaths, "//");
referenced.Add("System.Collections.dll"); // needed for List<> etc
referenced.Add("System.IO.Compression.dll"); // needed for GZip compression
referenced.Add("System.Net.Primitives.dll"); // needed for IPAddress etc

return RoslynCSharpCompiler.Compile(srcPaths, dstPath, referenced);
}

Expand Down

0 comments on commit 965780b

Please sign in to comment.