我通過Nuget的Autoumapper和NUnit包 添加到我的解決方案,他們工作很好,項目編譯在我的電腦中。構建團隊中的Nuget包失敗
當我宣佈構建服務器建立這個解決方案,我得到這個消息:
[MSBuild] AutoMapper\AutoMapperSpike.csproj: Build default targets (1s)
[10:35:50][AutoMapper\AutoMapperSpike.csproj] ResolveAssemblyReferences
[10:35:50][ResolveAssemblyReferences] ResolveAssemblyReference
[10:35:50][ResolveAssemblyReference] Primary reference "AutoMapper".
[10:35:50][ResolveAssemblyReference] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, 9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "AutoMapper". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
[10:35:50][ResolveAssemblyReference] For SearchPath "{HintPathFromItem}".
[10:35:50][ResolveAssemblyReference] Considered "..\packages\AutoMapper.2.2.1\lib\net40\AutoMapper.dll", but it didn't exist.
有誰知道如何解決這個問題?
我注意到的另一件事是它創建構建服務器articts也與包文件夾。 它唯一不能做的就是在構建服務器中構建項目。
你是否已經檢查過包裝本身? – Arran
packages.config和所有帶有項目引用的項目(包括nuget添加的dll)都被簽入。 – FelProNet
文件是否存在或不存在? – stijn