mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-08-04 03:46:19 -04:00
Make it possible to compile commands/plugins with more modern C# features in some cases on Windows
Does require Visual Studio to be installed
This commit is contained in:
parent
177120afd5
commit
e6df0cccc4
@ -193,6 +193,8 @@ namespace MCGalaxy.Modules.Compiling
|
||||
string root = RuntimeEnvironment.GetRuntimeDirectory();
|
||||
|
||||
string[] paths = new string[] {
|
||||
// Modern Visual Studio compilers
|
||||
@"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn\csc.exe",
|
||||
// First try new C# compiler
|
||||
Path.Combine(root, "csc.exe"),
|
||||
// Then fallback to old Mono C# compiler
|
||||
|
Loading…
x
Reference in New Issue
Block a user