Dependecies Merging removes property accessors

Hi,
we ran into the problem with merged assemblies. I tried to merge the assemblies without any obfuscation.
Afterwards the property accessors seems to be removed.
Most of the code still works.
But when accessing a property in linq, it fails with an exception "System.ArgumentException" xy-method is no property accessor.
Also in debug VS cannot access the properties.
It seems that only the get method is left and the property accessor is removed.
Here is the complete callstack
System.ArgumentException: Die SF6ClientDatasetManager.get_CurrentDataset-Methode ist kein Eigenschaftenaccessor.
bei System.Linq.Expressions.Expression.GetProperty(MethodInfo mi)
bei System.Linq.Expressions.Expression.Property(Expression expression, MethodInfo propertyAccessor)
bei SF6.SF6Reader.DeleteOldDataset(String[] ) in SF6Reader.cs:Zeile 684.
bei System.Linq.Expressions.Expression.GetProperty(MethodInfo mi)
bei System.Linq.Expressions.Expression.Property(Expression expression, MethodInfo propertyAccessor)
bei SF6.SF6Reader.DeleteOldDataset(String[] ) in SF6Reader.cs:Zeile 684.

How can we prevent this error?

Thanks
Matthias
Tagged:

Answers

  • Hi @madffm

    This looks like a question that one of Support engineers will need to investigate for you.

    If you've a got support contract, please send us a ticket. Provide as much information as you can - screenshots of any errors, log files etc – so we can help you as fast as possible.

    If you're not covered by a Support contract at the moment, email our Sales team at [email protected], and they'll be able to help.
    Customer Support
    Redgate Software
  • ravikrishnaravikrishna Posts: 7 New member
    Have you got any update on this? We're also facing the same issue. There's a property accessor which uses linq, and at that place the runtime fails with the "System.ArgumentException. The method 'x.x.x' is not a property accessor"
Sign In or Register to comment.