derickbailey/Albacore — Issue #190: Not possible to specify custom attributes with more than one constructor parameter
Author: petemounce
Created: 2012-01-31 11:00:09+00:00
State: open

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