快下班的时候 代码data 数据层编译失败,引起整个解决方案全部失败;
其他同事虽然vs 版本不同,但是都能编译通过;考虑到今天更改过vs 的设置,把今天更改的设置全部都恢复,结果还是不行。最后直接恢复了原始设置;编译还是失败;
这时候才想起来看看编译日志具体的错误,编译日志:

MSB3268: The primary reference "data, Version=1.0.0.2, Culture=neutral, processorArchitecture=MSIL"
could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Http, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0".
To resolve this problem, either remove the reference "data, Version=1.0.0.2, Culture=neutral, processorArchitecture=MSIL"
or retarget your application to a framework version which contains "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

到NETFramework v4.0 下找System.Net.Http 果然没有,从其他地方copy 一个放入目录,还是不行;
顺着这条线索 接着查 发现这玩意竟然是asp.net mvc 里的; 下载安装asp.net mvc 4 后,重新编译项目 问题迎刃而解了。。。

 

相关文章:

  • 2021-12-12
  • 2021-06-11
  • 2021-09-28
  • 2022-01-13
  • 2022-12-23
  • 2022-01-03
  • 2021-07-07
  • 2022-02-11
猜你喜欢
  • 2022-01-01
  • 2021-06-11
  • 2021-10-28
  • 2021-05-17
  • 2021-07-13
  • 2022-01-08
相关资源
相似解决方案