Dependecies Merging removes property accessors
madffm
Posts: 8 Bronze 2
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
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
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 sales@red-gate.com, and they'll be able to help.
Redgate Software