Overriding attributes

  • Thread starter Thread starter Ricky
  • Start date Start date
R

Ricky

I have a solutions that contains 13 projects. Now all 13
projects share the same AssemblyInfo.cs file. Within the
AssemblyInfo.cs I use the AssemblyKeyFile to strong name
all the assemblies.

Except one project can't be strong named due to unsigned
3rd party dlls. What I'd like to do is "override" the
attribute in that one project instead of maintaining two
seperate AssemblyInfo.cs files. But I'm getting "error
CS0579: Duplicate 'AssemblyKeyFile' attribute".

Anyway to override that attribute?
 
Ok, so after posting this my brain actually started
working...

I realized even if there was a way to "override", VS.NET
wouldn't be able to tell what overrode what. The
solution to my problem is to split AssemblyInfo.cs into
AssemblyInfoVersionStuff.cs and
AssemblyInfoStrongNamingStuff.cs and just have the
project include the ones they need. Duh.
 
Back
Top