我有使用Visual Studio 2010 TFS使用外部庫構建項目的問題。Team Foundation Server 2010:使用外部庫構建
在解決方案的根源上,我有一個「libs」文件夾和我所有的共享庫,並且從那裏引用這些庫。
當我建立了項目,一些圖書館都沒有考慮,我得到了以下錯誤消息:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1360): Could not resolve this reference. Could not locate the assembly "Spring.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
我試圖從調試更改解決方案配置到放行,找到另一個文件夾中的共享庫...我沒有設法通過它。
任何想法,我怎麼能得到這個庫在構建中使用?
謝謝, 大衛
絕對路徑每次都會殺死你。 – Robaticus 2010-07-14 13:25:16
我會檢查這一點。但乍一看,它看起來像是使用來自bin/debug的庫的版本 – davandries 2010-07-15 18:56:28
你的意思是你在另一個項目的bin/Debug文件夾中而不是在libs文件夾中引用dll?如果是這樣,那就是你的問題。編譯輸出文件夾在構建服務器上不同,因此您的項目指向最可能不存在或爲空的文件夾。 – 2010-07-15 19:55:17