RoutingEffect ignored in Release
<p>I've created a <code>RoutingEffect</code> in my PCL and matching <code>PlatformEffect</code> in my UWP project.  I am adding the <code>RoutingEffect</code> to the <code>Effects</code> collection in the constructor of my custom control which derives from <code>ContentView</code>.</p>

<p>This all works great when the application is run in Debug.  If I switch to Release then the effect does not get attached.  If I add a breakpoint to the contructor of my <code>RoutingEffect</code> then I get a message:</p>

<p><em>The breakpoint will not currently be hit. No executable code of the debugger's target code type is associated with this line. Possible causes include: conditional compilation, compiler optimizations, or the target architecture of this line is not supported by the current debugger code type.</em></p>

<p>If I untick "Optimize code" in the project properties for all projects then the constructor for the <code>RoutingEffect</code> does get hit, however <code>OnAttached</code> in the <code>PlatformEffect</code> still doesn't get hit.</p>

<p>Why is there this difference in behaviour and how do I get it to work correctly when built in Release?</p>