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 | |
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')
-rw-r--r-- | main/src/addins/ILAsmBinding/ChangeLog | 5 | ||||
-rw-r--r-- | main/src/addins/ILAsmBinding/ILAsmCompilerManager.cs | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/main/src/addins/ILAsmBinding/ChangeLog b/main/src/addins/ILAsmBinding/ChangeLog index 26d6263ad4..72f33ed66f 100644 --- a/main/src/addins/ILAsmBinding/ChangeLog +++ b/main/src/addins/ILAsmBinding/ChangeLog @@ -1,5 +1,10 @@ 2009-11-09 Lluis Sanchez Gual <lluis@novell.com> + * ILAsmCompilerManager.cs: Show an error message when ilasm is + not found. + +2009-11-09 Lluis Sanchez Gual <lluis@novell.com> + * ILAsmCompilerManager.cs: Get the ilasm path using the target runtime. Should fix bug #553536 - IL Console project completely broken on windows. 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); |