Tôi thêm vào giải pháp của tôi thông qua Nuget các gói Autoumapper và NUnit và chúng hoạt động tốt và dự án biên dịch trong máy tính của tôi.Xây dựng thất bại trong teamcity cho gói Nuget
Khi tôi tuyên bố máy chủ xây dựng để xây dựng giải pháp này tôi đã nhận thông điệp này:
[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.
Có ai biết làm thế nào để giải quyết vấn đề này?
Một điều khác tôi nhận thấy là nó tạo ra các tác phẩm trong máy chủ xây dựng cũng với thư mục gói. Điều duy nhất nó không thể làm là xây dựng dự án trong máy chủ xây dựng.
Bạn đã tự kiểm tra các gói chưa? – Arran
Gói packages.config và tất cả các dự án có tham chiếu dự án (bao gồm cả dll được thêm bởi nuget) đều được đăng ký. – FelProNet
tệp có thực sự tồn tại hay không? – stijn