CubeCoders / ConfuserEx-Reborn

An open-source, free protector for .NET applications
https://cubecoders.github.io/ConfuserEx-Reborn/
Other
94 stars 11 forks source link

Caliburn.Micro Rename Problems #9

Closed neilt6 closed 7 years ago

neilt6 commented 7 years ago

CaliburnAnalyzer doesn't detect actions that are attached as part of a Setter, which causes the obfuscated binary to crash at runtime. Example:

<Style x:Key="MyListBoxStyle" TargetType="ListBox" BasedOn="{StaticResource {x:Type ListBox}}">
   <Setter Property="ItemContainerStyle">
      <Setter.Value>
         <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
            <Setter Property="cal:Message.Attach" Value="[Event MouseDoubleClick] = [Action DoStuff($dataContext)]"/>
         </Style>
      </Setter.Value>
   </Setter>
</Style>