Yeah, I ran into an issue even with having the AppDomain.CurrentDomain.AssemblyResolve += ... in the same method as the call to PythonOps because it's at the beginning of the method that the runtime resolves the methods called, that's why I moved it to a static constructor.
On Thu, Feb 23, 2012 at 11:20 PM, Dino Viehland <di...@microsoft.com> wrote: > Forget that moving AssemblyResolve to PythonOps comment… chicken, egg, > etc… J**** > > ** ** > > *From:* ironpython-users-bounces+dinov=microsoft....@python.org [mailto: > ironpython-users-bounces+dinov=microsoft....@python.org] *On Behalf Of *Dino > Viehland > *Sent:* Thursday, February 23, 2012 10:16 PM > *To:* Slide; ironpython-users@python.org > *Subject:* Re: [Ironpython-users] Patch**** > > ** ** > > This is awesome, a couple comments:**** > > Can AssemblyResolve be moved into PythonOps? It looks > like it keys off of Assembly.GetEntryAssembly() and so doesn’t rely on > anything in the generated assembly. That’d make it easier to read and > update the code. Maybe I missed something that depends upon the assembly, > but if that’s the case the assembly could be passed into a class which has > the AssemblyResolve method.**** > > ** ** > > I think the GlobalAssemblyCache check is too strong. Ipy > install via the MSI will go into the GAC and so I think it won’t be > embedded. This should probably exclude the known Ipy/Dlr assemblies from > the GAC check.**** > > ** ** > > +1 on what Jeff said as well, I’d just add an overload instead of doing > the default value thing. **** > > ** ** > > Now I’m going to have to think more about pyc support for PTVS.**** > > ** ** > > *From:* ironpython-users-bounces+dinov=microsoft....@python.org > [mailto:ironpython-users-bounces+dinov=microsoft....@python.org] *On > Behalf Of *Slide > *Sent:* Thursday, February 23, 2012 7:55 PM > *To:* ironpython-users@python.org > *Subject:* [Ironpython-users] Patch**** > > ** ** > > Just wanted to get this out for review before I push it. I would have done > it through my fork on github and issued a pull request, but my fork is > currently messed up. Let me know if you see anything out of the ordinary.* > *** > > ** ** > > Fixes 32288 and 26706**** > > ** ** > > Thanks,**** > > ** ** > > slide**** > > ** ** > > > **** > > ** ** > > -- > Website: http://earl-of-code.com**** > -- Website: http://earl-of-code.com
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users