我通过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