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
- TSS Inspector creates invalid Project Relative paths for USS references in packages when adding References via Inspector
- Screen Space Ambient Occlusion is not visible when the directional light intensity is 0.001 or lower with the Deferred Rendering Path selected
- Unlinking Unity project from cloud throws "DirectoryNotFoundException" errors when the Build Automation package is installed
- Numeric input field for “Prewarm Time” doesn’t fully display decimal values
- Sprite Editor Overlay Menu issues
Resolution Note (fix version 2021.3):
Fixed in 2021.3.3f1