You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FileNotFoundException: Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
What I've tried
I've tried to redirect assembly identity to 4.2.1.0, 4.5.0.0 and 4.2.0.0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Introductory information
I have an IIncrementalGenerator.
It generates me the code through the XmlSerializer.
After the first Rebuild, my generator starts tracking changes in .xml files and generates C# types based on that.
It works well.
Description of the problem
If I do a Rebuild a second time, I get an error when creating the XmlSerializer object.
The problem happens, because my schema has an DataAnnotations attribute:
What I've tried
I've tried to use reflection and a lot of other things but currently I'm stuck.
Similar issues
microsoft/dotnet#584
dotnet/efcore#13268
#27975
#83152
Beta Was this translation helpful? Give feedback.
All reactions