<div dir="ltr">Hi Andy,<br><br>Thanks so much for your response.  <div><br></div><div>The issue turned out to be something fundamental... my DLL was built as "x64" and not as "Any CPU" (even though I was explicitly using 64-bit ironpython).  As soon as I switch to "Any CPU" the intellisense started working in the base cases!</div><div><br></div><div>I've now been struggling with another Intellisense related issue that I think might be driven by IronPython using old-style Python classes?</div><div><br></div><div>In my C# code, assume I have a class "CSharpTest(string first, string second)" that I want to inherit from my Python class AND I want the Python class to not require parameters (i.e., it will explicitly call the CSharpTest constructor)... I believe I have to do the following:</div><div><br></div><div>########################################</div><div><div>class Child (CSharpTest):</div><div>    def __new__(cls):</div><div>        instance = CSharpTest.__new__(cls, "one", "two")</div><div>        return instance</div></div><div>#########################################</div><div><br></div><div>The issue seems to be that "instance" is of unknown type, which I think is driven by old-style classes.  Am I doing inheritance the proper way here?</div><div><br></div><div>So when I go to do:</div><div><span style="line-height:1.5;font-size:13.1999998092651px">    c = Child()</span><br></div><div><span style="line-height:1.5;font-size:13.1999998092651px"><br></span></div><div>"c" does not seem to have any Intellisensable class members, and I believe this is because its type is unknown.</div><div><br></div><div>Is my understanding correct that this is due to old-style classes?  Or might I be missing something else?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 9, 2015 at 2:01 PM Andrew Graham <<a href="mailto:andy@agraham.demon.co.uk">andy@agraham.demon.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div 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><b>From:</b> <a title="gnychis@gmail.com" href="mailto:gnychis@gmail.com" target="_blank">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" target="_blank">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></div></div></div><div dir="ltr"><div dir="ltr"><div style="FONT-SIZE:10pt;FONT-FAMILY:'Arial';COLOR:#000000"><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>
</div></div></div></div><div dir="ltr"><div dir="ltr"><div style="FONT-SIZE:10pt;FONT-FAMILY:'Arial';COLOR:#000000"><div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline"><p>
<hr>
_______________________________________________<br>Ironpython-users mailing 
list<br><a href="mailto:Ironpython-users@python.org" target="_blank">Ironpython-users@python.org</a><br><a href="https://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">https://mail.python.org/mailman/listinfo/ironpython-users</a><br></p></div></div></div></div>
</blockquote></div>