msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Multiple InternalsVisibleTo values in AssemblyInfo?

Open cwarren-mw opened this issue 11 years ago • 2 comments

I'm dynamically generating AssemblyInfo files, and I've been able to add an InternalsVisibleTo attribute to the task:

<MSBuild.Community.Tasks.AssemblyInfo ... InternalsVisibleTo="Other.Project" />

Is there a way to add more than one InternalsVisibleTo attribute? Adding comma-separated assembly names didn't work (just got the full string in the InternalsVisibleTo attribute), and adding an additional InternalsVisibleTo="Third.Project" attribute caused MSBuild to die immediately, citing duplicate attribute names.

Thanks much.

cwarren-mw avatar Jan 08 '14 19:01 cwarren-mw

When I need InternalsVisibleTo attributes on my assemblies, I create a file called AssemblyInfoExtra.cs and put them in there. Is there a reason you need the InternalsVisibleTo attributes to be in the auto-generated file?

derkyjadex avatar Jan 16 '14 15:01 derkyjadex

I guess I had been assuming that all assembly info should be kept in one place, and I was trying to make that one place the generated file.

cwarren-mw avatar Jan 16 '14 15:01 cwarren-mw