Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.1.0.0

前端 未结 9 1285
情书的邮戳
情书的邮戳 2020-12-01 09:13

I have a .NET Standard 1.4 class library that references the System.ComponentModel.Annotations (4.3.0) NuGet package.

I\'m then referencing this class library from a

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 09:34

    For me, none of the other solutions worked.

    I resolved this by manually adding a reference to System.ComponentModel.DataAnnotations myself (via project -> References), rather than letting Visual Studio handle it via the light-bulb quick-fix menu.

提交回复
热议问题