Install into GAC after each build

T

the_kiddie98

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
 
V

Vadym Stetsyak

Hello, (e-mail address removed)!

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top