mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
dotnet: Add auto references for common DLLs
This commit is contained in:
parent
a818e54b85
commit
965780bd9e
@ -45,6 +45,10 @@ namespace MCGalaxy.Modules.Compiling
|
|||||||
#else
|
#else
|
||||||
protected override ICompilerErrors DoCompile(string[] srcPaths, string dstPath) {
|
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);
|
return RoslynCSharpCompiler.Compile(srcPaths, dstPath, referenced);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user