Skip to content
This repository
Browse code

Add 'EmbedInteropTypes' to property grid.

  • Loading branch information...
commit 1de1b02de0e82b4f27ad1dc311ce93416156efc7 1 parent 43511c4
Daniel Grunwald authored February 29, 2012
2  src/Main/Base/Project/Src/Project/Items/ComReferenceProjectItem.cs
@@ -80,7 +80,7 @@ internal ComReferenceProjectItem(IProject project, IProjectItemBackendStore buil
80 80
 			}
81 81
 		}
82 82
 		
83  
-		[ReadOnly(true)]
  83
+		[DefaultValue(false)]
84 84
 		public bool Isolated {
85 85
 			get {
86 86
 				return GetEvaluatedMetadata("Isolated", false);
15  src/Main/Base/Project/Src/Project/Items/ReferenceProjectItem.cs
@@ -66,6 +66,19 @@ internal ReferenceProjectItem(IProject project, IProjectItemBackendStore buildIt
66 66
 			}
67 67
 		}
68 68
 		
  69
+		[DefaultValue(false)]
  70
+		[LocalizedProperty("${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.EmbedInteropTypes}",
  71
+		                   Description = "${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.EmbedInteropTypes.Description}")]
  72
+		public bool EmbedInteropTypes {
  73
+			get {
  74
+				return GetEvaluatedMetadata("EmbedInteropTypes", false);
  75
+			}
  76
+			set {
  77
+				SetEvaluatedMetadata("EmbedInteropTypes", value);
  78
+				ReFilterProperties();
  79
+			}
  80
+		}
  81
+		
69 82
 		internal const string CopyLocalMetadataName = "Private";
70 83
 		
71 84
 		[LocalizedProperty("${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.LocalCopy}",
@@ -198,7 +211,7 @@ protected override void FilterProperties(PropertyDescriptorCollection globalized
198 211
 			base.FilterProperties(globalizedProps);
199 212
 			PropertyDescriptor copyLocalPD = globalizedProps["CopyLocal"];
200 213
 			globalizedProps.Remove(copyLocalPD);
201  
-			if (defaultCopyLocalValue != null) {
  214
+			if (defaultCopyLocalValue != null && !EmbedInteropTypes) {
202 215
 				globalizedProps.Add(new ReplaceDefaultValueDescriptor(copyLocalPD, defaultCopyLocalValue.Value));
203 216
 			} else {
204 217
 				globalizedProps.Add(new DummyValueDescriptor(copyLocalPD));

0 notes on commit 1de1b02

Please sign in to comment.
Something went wrong with that request. Please try again.