JetBrains / resharper-unity

Unity support for both ReSharper and Rider
Apache License 2.0
1.21k stars 131 forks source link

FormerlySerializedAsAttribute incorrectly marked as redundant when used with SerializeReference #2402

Closed LarsBlaabjerg closed 1 year ago

LarsBlaabjerg commented 1 year ago

The FormerlySerializedAsAttribute is incorrectly marked as redundant when used with SerializeReference.

image

Easy to reproduce, so I'll leave it at that.

JetBrains Rider 2022.3.3 Unity 2022.2.6f1 JetBrains Rider Editor unity package 3.0.21

citizenmatt commented 1 year ago

Could you try Rider 2023.1, please? There has been considerable work with regards to [SerializeReference] in this release, and it appears to be working correctly.

Screenshot 2023-04-27 at 9 15 56 am
LarsBlaabjerg commented 1 year ago

Yeah. Sorry. I had just updated Rider to make sure I had the latest version. I didn't expect to have to do it again. In JetBrains Rider 2023.1.1, it does work correctly. Thanks, and sorry for wasting your time :-)