快下班的時候 代碼data 數據層編譯失敗,引發整個解決方案所有失敗;
其餘同事雖然vs 版本不一樣,可是都能編譯經過;考慮到今天更改過vs 的設置,把今天更改的設置所有都恢復,結果仍是不行。最後直接恢復了原始設置;編譯仍是失敗;
這時候纔想起來看看編譯日誌具體的錯誤,編譯日誌:mvc
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 後,從新編譯項目 問題迎刃而解了。。。app