How to register Prism DLLs automatically in GAC?

Topics: Prism v4 - Silverlight 4
Dec 21, 2011 at 11:08 PM



It has been along time since I installed Prism the last time.  How do I register the DLLs into GAC so that I dont have to reference them manually anylonger?

Simply running that RegisterPrismBinaries.bat file?




Dec 22, 2011 at 6:27 PM
Edited Dec 22, 2011 at 6:30 PM

Hi Houman,

As mentioned in the Introduction Chapter, Installing Prism of the Prism documentation at MSDN, if what you want is to register the Prism Library binaries, you should simply launch the RegisterPrismBinaries.bat batch file located in the folder where you extracted Prism. Because updating the registry is a privileged operation, a User Account Control (UAC) prompt will appear if you do not have elevated privileges.

Also take into account that in some cases it would be necessary to right-click the file and then select "Run as administrator".

Take into account that, as far as I know the RegisterPrismBinaries.bat does not put Prism in the GAC.  It only adds registry entries so that Visual Studio will list the Prism and Unity assemblies in the Add References dialog.

Please let me know if I have misunderstood your scenario,


Agustin Adami