我通过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.
有谁知道如何解决这个问题?
我注意到的另一件事是它使用packages文件夹在构建服务器中创建了artificts.
它唯一能做的就是在构建服务器中构建项目.