Search Issue Tracker
Fixed in 2021.3.X
Votes
0
Found in
2021.2.12f1
2021.3
2021.3.0f1
Issue ID
1429184
Regression
Yes
System.ComponentModel.DataAnnotations.dll conflicts with .NET Standard profile
How to reproduce:
1. Open the user's attached "1235376_Repro" project
2. Observe the Console log
Expected result: No error is thrown
Actual result: System.ComponentModel.DataAnnotations.dll compatibility errors are thrown
Reproducible with: 2021.2.12f1, 2021.3.2f1
Not reproducible with: 2019.4.39f1, 2020.3.35f1, 2021.2.11f1, 2021.3.3f1, 2022.1.2f1, 2022.2.0a15
Reproduced on: macOS 12.3 (Intel)
Thrown errors:
error CS0433: The type 'ValidationResult' exists in both 'Polyfill, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
error CS0738: 'EditorValidator' does not implement interface member 'IValidator.Validate()'. 'EditorValidator.Validate()' cannot implement 'IValidator.Validate()' because it does not have the matching return type of 'ValidationResult'.
Note: No compatibility issue occur when switching the "API Compatibility Level" to ".NET Framework"
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Missing script error when clicking “script” link in Cave scene’s Water Sample Description
- [VFX Graph] Set Position Shape Gizmo isn't refreshed after shaper switch
- NullReferenceException is thrown when trying to access volumeStack from the HDCamera class
- Visual artifacts appear when using an Orthographic camera with a Reflection Probe
- Not all animation properties are accessible when a prefab with an avatar model contains a nested copy of itself with a renamed GameObject
Resolution Note (fix version 2021.3):
Fixed in 2021.3.3f1