473,408 Members | 1,821 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,408 software developers and data experts.

Strong Naming Cons???

Ted
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?

Thanks
Ted
Jul 21 '05 #1
8 2260
Because its not the "in" thing to do.

Hey we all follow design patterns dont we :D gotta keep up with the joneses,
and not think for ourselves.
"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?

Thanks
Ted

Jul 21 '05 #2
For one thing, any code you have that uses this assembly, will need to be
recompiled with a reference to the new assembly with the newer version.

"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?

Thanks
Ted

Jul 21 '05 #3
"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?


At least two that I can think of:
1. Strong named assemblies can only reference other strong named assemblies.
If you need to reference a non-strong named assembly external to your
project then you're out of luck.
2. Hotfixes. If your product includes many assemblies (DLL's) and you want
to ship only one of them as a hotfix, you will not be able to because your
other assemblies will reject it because of version problems. Two
workarounds for this issue are, a. Don't bump up the version. (ick), or b.
Use the Framework configuration tool to forward the old version to the new
version. (Difficult for your customers).

-- Alan
Jul 21 '05 #4
Because its not the "in" thing to do.

Hey we all follow design patterns dont we :D gotta keep up with the joneses,
and not think for ourselves.
"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?

Thanks
Ted

Jul 21 '05 #5
For one thing, any code you have that uses this assembly, will need to be
recompiled with a reference to the new assembly with the newer version.

"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?

Thanks
Ted

Jul 21 '05 #6
Serialization may be affected. If you have classes that need to be
serialized, the engine includes type information in the serialized data,
that way it can be reconstituted later. If you the AssemblyFormat property
is not set correctly, you could end up with a situation here you have stored
some data, upgraded your application (maybe because of a bug fix), and then
error when you try to load your serialized database (even though nothing in
that particular class has changed).

I would say maintenance is a big drawback. Unless your assemblies need to
be placed in the GAC, or run as COM+ component, or some other special case,
strong-naming them probably is not necessary.
"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?

Thanks
Ted

Jul 21 '05 #7
"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?


At least two that I can think of:
1. Strong named assemblies can only reference other strong named assemblies.
If you need to reference a non-strong named assembly external to your
project then you're out of luck.
2. Hotfixes. If your product includes many assemblies (DLL's) and you want
to ship only one of them as a hotfix, you will not be able to because your
other assemblies will reject it because of version problems. Two
workarounds for this issue are, a. Don't bump up the version. (ick), or b.
Use the Framework configuration tool to forward the old version to the new
version. (Difficult for your customers).

-- Alan
Jul 21 '05 #8
Serialization may be affected. If you have classes that need to be
serialized, the engine includes type information in the serialized data,
that way it can be reconstituted later. If you the AssemblyFormat property
is not set correctly, you could end up with a situation here you have stored
some data, upgraded your application (maybe because of a bug fix), and then
error when you try to load your serialized database (even though nothing in
that particular class has changed).

I would say maintenance is a big drawback. Unless your assemblies need to
be placed in the GAC, or run as COM+ component, or some other special case,
strong-naming them probably is not necessary.
"Ted" <te********@yahoo.com> wrote in message
news:67**************************@posting.google.c om...
What are the negatives to strongly naming assemblies? Why wouldn't we
want to strongly name all assemblies that we ship as part of our
products?

Thanks
Ted

Jul 21 '05 #9

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

Similar topics

0
by: Vijay Sarathi Reddy.G | last post by:
Actually CLR maintaings Strong type naming.What is strong type naming and how CLR maintains Strong type naming? Thanks...
1
by: Jason | last post by:
I've been experiementing with Assembly.Load..CreateInstance and strong naming the assemblies. This has given me a few questions, 1. Does the version number matter? I've found that its the...
1
by: Jimski | last post by:
Hi all, I am creating an assembly that will access a database to return record details. I need to deploy it to a 3rd Party and they will then be able to use the assembly in their code to...
6
by: Manuel Lopez | last post by:
Hello, I have a Web Project (UserControls.dll) with some user controls that is shared by many asp.net web applicattions. What we do is copy UserControls.dll to all the applications bin...
2
by: SStory | last post by:
How can I strong name my assembly if it references 3rd part non-strong named dlls? I just want my part strong named--I don't care about their part. Thanks, Shane
4
by: Ted | last post by:
What are the negatives to strongly naming assemblies? Why wouldn't we want to strongly name all assemblies that we ship as part of our products? Thanks Ted
7
by: Bruce Wood | last post by:
I still haven't gotten through the .NET Framework Security tome on my desk. Maybe the folks here can answer a burning question. I want to use strong naming at our organization as a security...
1
by: Tom | last post by:
My unsigned DLL works in my project that references it as long as I set Copy Local = true. Now I have signed the DLL with the sn.exe generated keys but have not yet moved the DLL into the GAC. ...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.