This question is locked. New answers and comments are not allowed.
Example:
compiled with Visual Studio 2015 Preview (14.0.22310.1 DP).
using
ClassLibrary3;
using
System;
[assembly:CustomAssembly(
"red"
)]
[assembly: CustomAssembly(
"blue"
)]
namespace
ClassLibrary3
{
[AttributeUsage(AttributeTargets.Assembly,AllowMultiple =
true
)]
public
class
CustomAssemblyAttribute
: Attribute
{
public
string
Color {
get
;
private
set
; }
public
CustomAssemblyAttribute(
string
color)
{
if
(color ==
null
)
throw
new
ArgumentNullException(nameof(color));
Color = color;
}
}
}
compiled with Visual Studio 2015 Preview (14.0.22310.1 DP).