The attribute [GdsRetain] is deprecated and should not be used anymore.
You can also use the provided automatic Code Fix to replace the attribute with [Retain]. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)
Replace the attribute with the [Retain] attribute:
