473,324 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Overriding attributes

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?
Jul 21 '05 #1
1 1618
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.

-----Original Message-----
I have a solutions that contains 13 projects. Now all 13
projects share the same AssemblyInfo.cs file. Within theAssemblyInfo.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?
.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nigel Sampson | last post by:
ey all, I'm in the process of creating a method of tracking whenever an objects properties are changed. Since its not possible to alter existing types I decided to used a proxy generated using...
0
by: Ian | last post by:
I've got this problem with overriding attributes on an inheritance chain where the XmlSerializer is concerned. For example: public class A { private string aWord = String.Empty(); public...
0
by: rein.petersen | last post by:
Hi All, Some of you may have encountered complications when trying to serialize an object derived from CollectionBase (implementing ICollection or IEnumerable). Specifically, the...
17
by: Bob Weiner | last post by:
What is the purpose of hiding intead of overriding a method? I have googled the question but haven't found anything that makes any sense of it. In the code below, the only difference is that...
2
by: Sedef | last post by:
Hi, i'm trying to create a custom Button user control which will be derived from System.Web.UI.WebControls.Button. the normal server side Button class creates some client side javascript code for...
18
by: JohnR | last post by:
From reading the documentation, this should be a relatively easy thing. I have an arraylist of custom class instances which I want to search with an"indexof" where I'm passing an instance if the...
4
by: drb | last post by:
Hi, I'm hoping this is a stupid question, so I apologize in advance. After creating WSDL files from scratch for a new web service, I used the WSDL.exe tool to generate C# stubs for both the...
1
by: tshad | last post by:
I have a DataGrid where I want the text in the cells to be black. But I want the header to have a black background and white text. The problem is the settings in the DataGrid are not overriding...
5
by: Thomas Lorenz | last post by:
Hi I have a class Person and a class Student which inherits from Person. Each class should have a method which copies the properties from another Person or Student respectively. The copy-method...
10
by: r035198x | last post by:
The Object class has five non final methods namely equals, hashCode, toString, clone, and finalize. These were designed to be overridden according to specific general contracts. Other classes that...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.