Skip to content

Not possible to specify custom attributes with more than one constructor parameter #190

@petemounce

Description

@petemounce

I'm trying to use AssemblyInfoTask's custom-attributes feature to specify an FxCop System.Diagnostics.SuppressMessageAttribute, whose constructor has the following signature:

SuppressMessage(string categoryId, string checkId)

with optional parameters Justification, MessageId, Scope and Target but that feature seems to only support attributes with a single-parameter constructor.

I would like either

  • to have support for that attribute a la the other specifically-supported ones
  • to have support for attributes with more complicated constructors (more than one constructor parameter, plus optional named arguments)
  • to have support for pushing in attributes as strings

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions