Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法加载文件或程序集';System.ComponentModel.Annotations,版本=4.2.0.0,_C#_.net_Visual Studio - Fatal编程技术网

C# 无法加载文件或程序集';System.ComponentModel.Annotations,版本=4.2.0.0,

C# 无法加载文件或程序集';System.ComponentModel.Annotations,版本=4.2.0.0,,c#,.net,visual-studio,C#,.net,Visual Studio,添加以下代码 你试过NuGet了吗 安装包System.ComponentModel.Annotations 添加了下面的代码这不起作用,也尝试了下面的代码不起作用真的是的,我也使用Nuget安装,它不适用于meInstall包System.ComponentModel.Annotations包'System.ComponentModel.Annotations.4.5.0'已存在于项目'WMQ\Beredning.CPA.Infrastructure'中时间流逝:00:00:04.19507

添加以下代码


你试过NuGet了吗


安装包System.ComponentModel.Annotations

添加了下面的代码这不起作用,也尝试了下面的代码不起作用真的是的,我也使用Nuget安装,它不适用于meInstall包System.ComponentModel.Annotations包'System.ComponentModel.Annotations.4.5.0'已存在于项目'WMQ\Beredning.CPA.Infrastructure'中时间流逝:00:00:04.1950770将Nuget依赖项添加到我的项目对我有效