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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2021.3):
Fixed in 2021.3.3f1