MSDN Archive Home
Help and FAQs
AssemblyInfo Task version 1.0.51130.0
All Resource Updates
Create New Discussion
Issue Request: Task throws an exception if assemblyinfo file contains multiple attributes with the same name
Oct 13 2009 at 9:41 AM
Could a co-ordinator log this as an Issue? I tried but I guess you need rights to do so as it threw a server error. Issue details below. Thanks.
Task throws an exception if assemblyinfo file contains multiple attributes with the same name
The task throws an exception if your assemblyinfo.vb/.cs file contains multiple attributes with the same name (e.g. in my case internalsvisibleto). Although there is a workaround, this exception can be a real pain as there is no information in the build log about which project actually fails (other than by trying to guess from the last success in the log). This can make the offending assemblyinfo file tedious to pin down.
The problem can be worked around (at least in my case) by merging the multiple attributes under a single delimiter, e.g.
<Assembly: InternalsVisibleTo("xxx"), Assembly: InternalsVisibleTo("yyy")>
Nov 7 2009 at 12:29 PM
This task is now maintained in the MSBuild Extension Pack. Please log an issue there if you are still having a problem. http://www.msbuildextensionpack.com/
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.