Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 i can avoid this problem.

Advance thanks to all.

Updated 4-Jan-12 11:24am
[no name] 4-Jan-12 7:28am    
Are you talking about application pages? What assemblies are you referencing? Custom controls?
senguptaamlan 4-Jan-12 7:36am    
@shefeekcm : a bit more explanation is required.
Rajesh Anuhya 4-Jan-12 9:15am    
Confused !!!

1 solution

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,
Share this answer

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900