Browse Source

Expose the <ReferenceOutputAssembly> setting in the SharpDevelop UI.

pull/6/merge
Daniel Grunwald 14 years ago
parent
commit
08a54ec770
  1. 10
      data/resources/StringResources.resx
  2. 16
      src/Main/Base/Project/Src/Project/Items/ProjectReferenceProjectItem.cs

10
data/resources/StringResources.resx

@ -4236,6 +4236,16 @@ Only letters, digits, space, '.' or '_' are allowed.</value> @@ -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>

16
src/Main/Base/Project/Src/Project/Items/ProjectReferenceProjectItem.cs

@ -5,6 +5,7 @@ using System; @@ -5,6 +5,7 @@ using System;
using System.ComponentModel;
using System.IO;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui;
namespace ICSharpCode.SharpDevelop.Project
{
@ -41,6 +42,21 @@ namespace ICSharpCode.SharpDevelop.Project @@ -41,6 +42,21 @@ namespace ICSharpCode.SharpDevelop.Project
}
}
[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); }
}

Loading…
Cancel
Save