msbuildtasks
msbuildtasks copied to clipboard
Multiple InternalsVisibleTo values in AssemblyInfo?
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.
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?
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.