Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi All
     
I have to update my dll version number in aspx pages and some cs files based on the updated dll version from assembly. I have referred to the dll in all aspx pages and in some cs pages.  
 
When I update the dll(new version comes). I need to change in all aspx and cs pages also.how i can avoid this problem.
 
Advance thanks to all.
 
Regards,
Shefeek
Posted 4-Jan-12 0:02am
shefeekcm2.4K
Edited 4-Jan-12 11:24am
v5
Comments
Mark Nischalke at 4-Jan-12 7:28am
   
Are you talking about application pages? What assemblies are you referencing? Custom controls?
senguptaamlan at 4-Jan-12 7:36am
   
@shefeekcm : a bit more explanation is required.
Rajesh Puli at 4-Jan-12 9:15am
   
Confused !!!

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The way you formulated it, the problem looks contradictory, not having a solution. You want to change the version of DLL but you don't want to change anything else? If your interfaces implemented by an assembly and usage are the same, the change of the code using it is not needed; if the interface is changed, the using code should be changed anyway. Isn't it logical?

 

To start with proper version management, you should understand, that there is no such thing as "DLL version". There is assembly and file version; see you AssemblyInfo.cs file. I suggest you use assembly version only. You need to organize software in layers by their dependency and develop a strategy based on version number. For example, increment of build version mean "cosmetic" changes not requiring any change in dependent layers, minor version might be incremented for change in behavior, and major version could mean the change in interfaces requiring change in other layers. Something like that. You can also develop support utilities and put them in your project build steps: check up of version consistency, etc. You can read all meta-data during run time, including assembly versions. This is a matter of a big article, but I hope you got an idea.

 
Good luck,
—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 604
1 thatraja 370
2 OriginalGriff 231
3 Sergey Alexandrovich Kryukov 211
4 kbrandwijk 204
0 OriginalGriff 737
1 Dnyaneshwar@Pune 604
2 Kornfeld Eliyahu Peter 505
3 Sergey Alexandrovich Kryukov 405
4 thatraja 370


Advertise | Privacy | Mobile
Web01 | 2.8.140902.1 | Last Updated 4 Jan 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100