/// <summary> /// Executes the component. /// </summary> /// <returns> /// <c>true</c> if the command executed successfully; otherwise, <c>false</c> /// </returns> public override bool Execute() { AssemblyAttributesToValuesDictionary.Add("AssemblyFileVersion", AssemblyFileVersion); AssemblyAttributesToValuesDictionary.Add("AssemblyInformationalVersion", AssemblyInformationalVersion); AssemblyAttributesToValuesDictionary.Add("AssemblyVersion", AssemblyVersion); return(base.Execute()); }
/// <summary> /// Executes the component. /// </summary> /// <returns> /// <c>true</c> if the command executed successfully; otherwise, <c>false</c> /// </returns> public override bool Execute() { if (string.IsNullOrWhiteSpace(AttributeName)) { throw new InvalidOperationException("The AttributeName property is null, empty or contains only whitespace, which is not allowed. It must be set to the name of a valid .NET attribute type name without the \"Attribute\" suffix (e.g. AssemblyConfiguration)."); } AssemblyAttributesToValuesDictionary.Add(AttributeName, AttributeValue); return(base.Execute()); }