-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Adding nhibernate.dll to global assembly cache
PostPosted: Thu Dec 01, 2005 5:45 am 
Newbie

Joined: Thu Dec 01, 2005 5:11 am
Posts: 16
Location: Estonia
Hi!

I have troubles adding nhibernate.dll to GAC.
Code:
gacutil /i path/to/nhibernate.dll

It registers successfully, but when I open the project and try to add reference from GAC, Nhibernate is not listed. How?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 6:05 am 
this is not releated with nhibernate.
this is what expected.

you can add reference from any other location. and when you releasing your application you can install the nhibernate.dll to the gac. (and don't keep the another copy in the bin or the same directory with windows app.)


Top
  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 6:20 am 
Newbie

Joined: Thu Dec 01, 2005 5:11 am
Posts: 16
Location: Estonia
OK, got it, thanks. It's interesting that even when assembly is in the gac, I can not see it in Visual Studio


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 11:24 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
Visual Studio doesn't use the GAC in the references dialog, it uses the Registry. Add the folder where NHibernate.dll sits to a subfolder of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\AssemblyFolders key. In other words, create a key under there, call it whatever you want, and set the default value to the path where NHibernate.dll lives. Then you will see NHibernate in the VS "Add Reference" dialog.

Note that this is in addition to adding NHibernate.dll to the GAC.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 12:11 pm 
Expert
Expert

Joined: Fri Oct 28, 2005 5:38 pm
Posts: 390
Location: Cedarburg, WI
Yeah, I discovered all this the hard way :(

Is there any chance NHibernate can have an actual installation in the future which would do this? :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 3:04 pm 
Newbie

Joined: Thu Dec 01, 2005 5:11 am
Posts: 16
Location: Estonia
Thanks for the tip, k-dub! I will try this tomorrow morning right away!
I would be nice yes to have nHibernate installer with DLLs automatically added to GAC
:mrgreen: :mrgreen:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 7:34 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
Oh, I'd second that!

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 4:39 am 
Newbie

Joined: Thu Dec 01, 2005 5:11 am
Posts: 16
Location: Estonia
Yes, confirmed, it works very nicely.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.