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

Sign In or Register to comment.