By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,338 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,338 IT Pros & Developers. It's quick & easy.

Install into GAC after each build

P: n/a
Hi,
Just a quick question. I am builing multiple projects each which
use an assembly. Because of a poor design reason (made before I
arrived) the same dll is built in mutiple solutions, which causes a
version number issue. When the first project tries to access the dll on
run, it finds a different version and crashes.
If I install a dll into the GAC and reference it from there in the
projects, do I have to re-install it into the GAC on each build of the
solution (if there are changes to that dll), or will it be picked up
automatically.

Thanks a million

Kiddie

Apr 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello, th**********@yahoo.com!

You can add post build action for that dll.
Under build events in VS, for post build event you can add

gacutil /u $(TargetName)
gacutil /i $(TargetPath)

Also you can configure project build order in the solution's properties that the dll that is used with many project will be built first...

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Apr 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.