diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-04-01 21:26:33 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-04-01 21:26:33 +0400 |
commit | 8e60cd767081ed648b616a30335f8b80cf071da1 (patch) | |
tree | 344e05f9f8e18fc64e4e02ef7d5fb8214cb0eea1 /main/src/core/MonoDevelop.Core | |
parent | f04c7ecd6ccc0dc4acc608ade31cc4fa11cf9957 (diff) |
Shared Assents Projects fixes
Don't show the "project won't be built" message if the project doesn't
support building.
Also fixed NRE.
Diffstat (limited to 'main/src/core/MonoDevelop.Core')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs index 4a7080b9ac..197ff41d21 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs @@ -241,11 +241,13 @@ namespace MonoDevelop.Projects.Formats.MSBuild }); foreach (var refProject in item.GetReferencedItems (configuration).OfType<Project> ()) { var refConfig = refProject.GetConfiguration (configuration); - configs.Add (new ProjectConfigurationInfo () { - ProjectFile = refProject.FileName, - Configuration = refConfig.Name, - Platform = GetExplicitPlatform (refConfig) - }); + if (refConfig != null) { + configs.Add (new ProjectConfigurationInfo () { + ProjectFile = refProject.FileName, + Configuration = refConfig.Name, + Platform = GetExplicitPlatform (refConfig) + }); + } } return configs.ToArray (); } |