<html><head><style type="text/css" media="screen">Body{font-family: Verdana;font-size:.75em;}h4{font-size:.9em;}a{color: #3a62a6;}.digest .toc {margin-bottom: 15px; padding-bottom:8px; border-bottom: 1px solid #ccc;}.digest .tocItem {margin-bottom: 15px;}.tocItem a{color:#000;text-decoration: none;}.tocItem a:hover{color: #3a62a6;text-decoration: underline;}.topic{padding-bottom: 8px;margin-bottom: 20px; border-bottom: 1px solid #ccc;}.topicHeader{margin-bottom:10px;}.topicTitle{font-weight: bold;}.replies p{margin:0;padding:0;}.replies hr{width: 15%;text-align: left;margin: 0 auto 5px 0;border: none 0;border-top: 1px solid #ccc;height: 1px;}.reply{margin-bottom: 6px;padding-bottom: 4px;}.anchorMarker{color: #3a62a6;}.footer{color: gray;}</style></head><body><div class="digest"><p>Hi ironpython,</p><p>Here's your Daily Digest of new issues for project "<a href="http://ironpython.codeplex.com/">IronPython</a>".</p><p>In today's digest:</p><h4>ISSUES</h4><div class="toc"><div class="tocItem"><a href="#toc_issue_1">1. <span class="tocTitle">[New comment] AssemblyResolve event in PythonContext may load unnecessary assemblies</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New comment] AssemblyResolve event in PythonContext may load unnecessary assemblies</span> <span class="anchorMarker">↓</span></a></div></div><h4>ISSUES</h4><div class="topic"><a name="toc_issue_1"></a><div class="topicHeader"><span class="topicTitle">1. [New comment] AssemblyResolve event in PythonContext may load unnecessary assemblies</span> <a href="http://ironpython.codeplex.com/workitem/33313">view online</a></div><p>User jdhardy has commented on the issue:</p><p>"Can you post a proposed patch? I'm not exactly sure where you're proposing to make the change, and if I see it should be able to make a better decision."</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New comment] AssemblyResolve event in PythonContext may load unnecessary assemblies</span> <a href="http://ironpython.codeplex.com/workitem/33313">view online</a></div><p>User eldan has commented on the issue:</p><p>"In PythonContext.cs file of IronPython project I'm pretty sure it was at line 1379 you have the method that was registered to the AssemblyResolve event. The problem is this event jumps a lot of times for no reason when I access my resources in my own code e.g open my form that uses some resources (images)<br>If you take a look here: <br>http://connect.microsoft.com/VisualStudio/feedback/details/526836/wpf-appdomain-assemblyresolve-being-called-when-it-shouldnt<br /><br />specifically this comment:<br>------------------------------------------------------------------<br>Posted by ShiverCube on 2/6/2010 at 3:20 AM<br>The issue is that the AssemblyResolve event has a different behaviour in .NET 4.0 than it does in .NET 3.5. Sure, if you return null in the handler you can suppress the event, but this doesn't make any sense from an abstraction point of view. The AssemblyResolve should only be called when a resource cannot be found, and returning null should throw an Exception (as it does in .NET 3.5). My main concern is that the even though the behaviour appears to be different in the new version of .NET, I am unable to find any documentation about the matter. I would expect that if Microsoft decided to make a radical change such as this then they would at least have written something about it on MSDN.<br>------------------------------------------------------------------<br /><br />That is the problem <br>What I suggest is when you get the assembly name like MyProgram.resources.dll or  Whatever.resources.dll or any assembly name that ends with .resources<br>you should ignore it and return null <br /><br />if (args.Name.EndsWith(".resources.dll")<br>      return null;<br /><br />"</p></div><div class="footer"><p>You are receiving this email because you subscribed to notifications on CodePlex.</p><p>To report a bug, request a feature, or add a comment, visit <a href="http://ironpython.codeplex.com/workitem/list/basic">IronPython Issue Tracker</a>. You can <a href="https://ironpython.codeplex.com/subscriptions/workitem/project/edit">unsubscribe or change your issue notification settings</a> on CodePlex.com.</p></div></div></body></html>