Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2004-06-28 13:43:53 +0400
committerAtsushi Eno <atsushieno@gmail.com>2004-06-28 13:43:53 +0400
commit28ff9d2fd75b57ff50e07bda936e8745af1776cd (patch)
tree7dafb969c690b7ea18b1070c5f57554b0fe6dd5e /mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
parent69821227f01756711e9a633bff4154288a9c1df2 (diff)
2004-06-28 Atsushi Enomoto <atsushi@ximian.com>
* CSharpCodeCompiler.cs : (only for windows) First check mcs.bat, then check mcs.exe. It enables xsp working with mono windows installer. svn path=/trunk/mcs/; revision=30472
Diffstat (limited to 'mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs')
-rw-r--r--mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs b/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
index f4ced045dae..a09a812bedc 100644
--- a/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
+++ b/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
@@ -59,7 +59,12 @@ namespace Mono.CSharp
windowsMonoPath = Path.Combine (
Path.GetDirectoryName (
Path.GetDirectoryName (p)),
- "bin\\mono.exe");
+ "bin\\mono.bat");
+ if (!File.Exists (windowsMonoPath))
+ windowsMonoPath = Path.Combine (
+ Path.GetDirectoryName (
+ Path.GetDirectoryName (p)),
+ "bin\\mono.exe");
windowsMcsPath =
Path.Combine (p, "1.0\\mcs.exe");
}