diff options
author | Michael Hutchinson <mhutch@xamarin.com> | 2014-02-14 02:13:40 +0400 |
---|---|---|
committer | Michael Hutchinson <mhutch@xamarin.com> | 2014-02-14 10:45:50 +0400 |
commit | 90ce25d249a5ee7e622f835f0c0fff5bb978f032 (patch) | |
tree | 700b0d1fccec25efbf46b8ef401d4d4acbe12693 /main/src/core/MonoDevelop.Projects.Formats.MSBuild | |
parent | e41c1c8b9e78eb99b977aa180611fc0b8fe5b5fc (diff) |
[MSBuild] Report invalid project errors when using new engine
Diffstat (limited to 'main/src/core/MonoDevelop.Projects.Formats.MSBuild')
-rw-r--r-- | main/src/core/MonoDevelop.Projects.Formats.MSBuild/MonoDevelop.Projects.Formats.MSBuild/ProjectBuilder.v4.0.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Projects.Formats.MSBuild/MonoDevelop.Projects.Formats.MSBuild/ProjectBuilder.v4.0.cs b/main/src/core/MonoDevelop.Projects.Formats.MSBuild/MonoDevelop.Projects.Formats.MSBuild/ProjectBuilder.v4.0.cs index 35f91755e8..7390081f7b 100644 --- a/main/src/core/MonoDevelop.Projects.Formats.MSBuild/MonoDevelop.Projects.Formats.MSBuild/ProjectBuilder.v4.0.cs +++ b/main/src/core/MonoDevelop.Projects.Formats.MSBuild/MonoDevelop.Projects.Formats.MSBuild/ProjectBuilder.v4.0.cs @@ -95,8 +95,12 @@ namespace MonoDevelop.Projects.Formats.MSBuild project.Build (target);
result = logger.BuildResult.ToArray ();
- // } catch (InvalidProjectFileException ex) {
- // result = new MSBuildResult[] { new MSBuildResult (false, ex.ProjectFile ?? file, ex.LineNumber, ex.ColumnNumber, ex.ErrorCode, ex.Message) };
+ } catch (Microsoft.Build.Exceptions.InvalidProjectFileException ex) {
+ var r = new MSBuildResult (
+ file, false, ex.ErrorSubcategory, ex.ErrorCode, ex.ProjectFile,
+ ex.LineNumber, ex.ColumnNumber, ex.EndLineNumber, ex.EndColumnNumber,
+ ex.BaseMessage, ex.HelpKeyword);
+ result = new [] { r };
} finally {
currentLogWriter = null;
}
|