我通过 Nuget 将 Autoumapper 和 NUnit 包添加到我的解决方案中,它们运行良好,并且项目在我的计算机中编译。
当我声明构建服务器来构建此解决方案时,我收到了以下消息:
[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.
有谁知道如何解决这个问题?
我注意到的另一件事是它在构建服务器中也使用包文件夹创建了工件。它唯一不能做的就是在构建服务器中构建项目。