Skip to content
Browse files

Expose the <ReferenceOutputAssembly> setting in the SharpDevelop UI.

  • Loading branch information...
1 parent e1cb442 commit 08a54ec77098d4756397633a32e4f7876ad2e206 @dgrunwald dgrunwald committed Mar 21, 2012
View
10 data/resources/StringResources.resx
@@ -4236,6 +4236,16 @@ Only letters, digits, space, '.' or '_' are allowed.</value>
<value>The public key token</value>
<comment>Assembly reference's public key token property description</comment>
</data>
+ <data name="ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.ReferenceOutputAssembly" xml:space="preserve">
+ <value>Reference assembly</value>
+ <comment>'Reference' is a verb in this case.
+This string appears in the property pad when a project reference is selected in the projects pad.
+It is a boolean option that defaults to true.
+If set to false, this reference specifies only a build-order dependency and does not cause the assembly to be referenced.</comment>
+ </data>
+ <data name="ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.ReferenceOutputAssembly.Description" xml:space="preserve">
+ <value>If set to false, this reference specifies only a build-order dependency and does not cause the assembly to be referenced.</value>
+ </data>
<data name="ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.SpecificVersion" xml:space="preserve">
<value>Specific Version</value>
<comment>Reference property name indicating if the reference is to a specific version</comment>
View
16 src/Main/Base/Project/Src/Project/Items/ProjectReferenceProjectItem.cs
@@ -5,6 +5,7 @@
using System.ComponentModel;
using System.IO;
using ICSharpCode.Core;
+using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.SharpDevelop.Project
{
@@ -41,6 +42,21 @@ public class ProjectReferenceProjectItem : ReferenceProjectItem
}
}
+ [DefaultValue(true)]
+ [LocalizedProperty("${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.ReferenceOutputAssembly}",
+ Description = "${res:ICSharpCode.SharpDevelop.Internal.Project.ProjectReference.ReferenceOutputAssembly.Description}")]
+ public bool ReferenceOutputAssembly {
+ get {
+ return GetEvaluatedMetadata("ReferenceOutputAssembly", true);
+ }
+ set {
+ if (value)
+ RemoveMetadata("ReferenceOutputAssembly");
+ else
+ SetEvaluatedMetadata("ReferenceOutputAssembly", "false");
+ }
+ }
+
public override string ShortName {
get { return Path.GetFileNameWithoutExtension(Include); }
}

0 comments on commit 08a54ec

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