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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top