473,386 Members | 1,819 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,386 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 2259
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.