Link to home
Start Free TrialLog in
Avatar of Raghunandan44
Raghunandan44

asked on

GAC

HI ,

I am developing a Common Class Library that i wish to install it into the gac . I have Hard Coded the Assembly version of the Dll's to 1.0.3 so that if i make changes to the library and compile also it does not change .

Question 1 : Am I Going on the Right Track I mean should i hard Code the Assembly version.

2) Do i have to install and un-install the dll everytime i build the class library or because i have hard coded the assembly version it will automatically pick up the new version.

3) If i include the dll in a web project do i have to remove and add the refrenece everytime i make changes to the common library

4) Is this the right way to do

5) any other good way to do please do suggest

Thanks

Raghu
Avatar of Raghunandan44
Raghunandan44

ASKER

In Question 2) Do i have to install and un-install the dll everytime i build the class library or because i have hard coded the assembly version it will automatically pick up the new version.
 I meant in the GAC

Thnaks
Raghu
ASKER CERTIFIED SOLUTION
Avatar of trevorhartman
trevorhartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
btw, i put those csc and gacutil commands in a batch and just execute it
hi ,

Thanks for the Quick Reply . If i have the assembly version as you suggested won't that change every time i compile and will that make me add and remove the refrence in the web project . Sorry I'm a newbie  

Thanks

Raghu
If you are directly accessing the assembly from GAC then you need not to change the refrence as

gacutil /u FutureShirts
gacutil /i FutureShirts.dll

Will first uninstall the dll and then add a new version but if you are refrencing the dll from local folder then simply replace the dll.
Thanks a Lot For the Quick Replies .

Raghu