diff options
author | Lluis Sanchez <lluis@novell.com> | 2009-11-09 20:48:24 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2009-11-09 20:48:24 +0300 |
commit | 6265d62266c31fe5be12030c6a2d89dd08c9ddf6 (patch) | |
tree | 357a68ae376d1ed1767e4b684d8ee0c965df3960 /main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs | |
parent | 6e8b6625f49b1a276947361aeafdeaf1fcd8a8c5 (diff) |
* ILAsmCompilerManager.cs: Show an error message when ilasm is not
found.
svn path=/trunk/monodevelop/; revision=145755
Diffstat (limited to 'main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs')
-rw-r--r-- | main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs b/main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs index 5fecddac94..36f29154ec 100644 --- a/main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs +++ b/main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs @@ -88,6 +88,13 @@ namespace ILAsmBinding string error = ""; string ilasm = configuration.TargetRuntime.GetToolPath (configuration.TargetFramework, "ilasm"); + if (ilasm == null) { + BuildResult res = new BuildResult (); + res.AddError (GettextCatalog.GetString ("IL compiler (ilasm) not found.")); + if (configuration.TargetRuntime is MsNetTargetRuntime) + res.AddError (GettextCatalog.GetString ("You may need to install the .NET SDK.")); + return res; + } string outstr = ilasm + " " + sb.ToString (); monitor.Log.WriteLine (outstr); |