<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>Is it Intellisense in Python Tools for Visual Studio you are
referring to?</DIV>
<DIV> </DIV>
<DIV>If so my experience is that to obtain Intellisense you don’t need your DLLs
in the GAC.</DIV>
<DIV> </DIV>
<DIV>To see my custom DLL in my project I do four things.</DIV>
<DIV> </DIV>
<DIV>1) Add the DLL or EXE Assemblies to References in your IronPython project
(I’m not sure if this is essential)</DIV>
<DIV> </DIV>
<DIV>2) Add the folder where the Assemblies are located to Search Paths in your
IronPython project. This does seem to be essential.</DIV>
<DIV> </DIV>
<DIV>3) Add “clr.AddReference(MyDllName”) to your code where the DLL path is in
sys.path</DIV>
<DIV> </DIV>
<DIV>4)Add “import ANamespaceInMyDll” or “from ANamespaceInMyDll import *” or
similar.</DIV>
<DIV> </DIV>
<DIV>Note that the C# namespace containing the Class definitions maps to an
IronPython module.</DIV>
<DIV>You should now get Intellisense for each class in the imported
Namespaces</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Andy Graham</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT face=Arial></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=gnychis@gmail.com
href="mailto:gnychis@gmail.com">George Nychis</A> </DIV>
<DIV><B>Sent:</B> Wednesday, July 08, 2015 4:33 PM</DIV>
<DIV><B>To:</B> <A title=ironpython-users@python.org
href="mailto:ironpython-users@python.org">ironpython-users@python.org</A> </DIV>
<DIV><B>Subject:</B> [Ironpython-users] struggling with Intellisense and
GAC</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>I am struggling to get Intellisense working with some DLLs that I
have built. I do not want the C# code to be included directly in the
project, I only want the functionality to be accessible through a pre-built DLL.
<DIV> </DIV>
<DIV>First, I am able to run my IronPython code successfully linking to the DLLs
by adding where they exist to my search path and then using
clr.AddReference()</DIV>
<DIV> </DIV>
<DIV>However, using that method I cannot get Intellisense to work. So then
I did some searching and found multiple discussions around the DLLs needing to
be in the GAC for them to be accessible by Intellisense.</DIV>
<DIV> </DIV>
<DIV>Therefore I signed my DLLs (making them strong typed) and added them to the
GAC using gacutil.exe. I can verify this by listing the installed
modules:</DIV>
<DIV> </DIV>
<DIV>
<DIV>$ gacutil.exe -l | grep Utils</DIV>
<DIV> Utils, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=6c2b3719154e5544, processorArchitecture=AMD64</DIV></DIV>
<DIV> </DIV>
<DIV>Despite doing that, it is not accessible by the GAC. Additionally, I
assumed that I could now drop my search path and the modules would be found
using clr.AddReference() in the GAC instead. However, once I drop the
search path it does not work again.</DIV>
<DIV> </DIV>
<DIV>Could somebody point me in the right direction, here? I'm feeling
lost.</DIV>
<DIV> </DIV>
<DIV>Thanks much!</DIV>
<DIV> </DIV>
<DIV>- George</DIV></DIV>
<P>
<HR>
_______________________________________________<BR>Ironpython-users mailing
list<BR>Ironpython-users@python.org<BR>https://mail.python.org/mailman/listinfo/ironpython-users<BR></DIV></DIV></DIV></BODY></HTML>