Skip to content

Commit e6df0cc

Browse files
Make it possible to compile commands/plugins with more modern C# features in some cases on Windows
Does require Visual Studio to be installed
1 parent 177120a commit e6df0cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MCGalaxy/Modules/Compiling/CompilerBackends.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ protected override string GetExecutable() {
193193
string root = RuntimeEnvironment.GetRuntimeDirectory();
194194

195195
string[] paths = new string[] {
196+
// Modern Visual Studio compilers
197+
@"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn\csc.exe",
196198
// First try new C# compiler
197199
Path.Combine(root, "csc.exe"),
198200
// Then fallback to old Mono C# compiler

0 commit comments

Comments
 (0)