简体   繁体   English

TFS构建服务器和Nuget

[英]TFS Build server and Nuget

Hello i have a project that uses nuget libraries, and build always fails with error: 您好我有一个使用nuget库的项目,并且构建总是失败并出现错误:

Debug | Any CPU
5 error(s), 4 warning(s)
$/TEST/TEST/TEST.sln - 5 error(s), 4 warning(s),View Log File
D:\Builds\3\TEST\CI - Check In Build\src\TEST\.nuget\NuGet.targets (92): Unable to find version '1.3.1' of package 'Callisto'.
D:\Builds\3\TEST\CI - Check In Build\src\TEST\.nuget\NuGet.targets (92): Unable to find version '5.0.8' of package 'Newtonsoft.Json'.
D:\Builds\3\TEST\CI - Check In Build\src\TEST\.nuget\NuGet.targets (92): Unable to find version '1.5.4.3' of package 'winrtxamltoolkit'.
D:\Builds\3\TEST\CI - Check In Build\src\TEST\.nuget\NuGet.targets (92): Unable to find version '1.5.4.3' of package 'WinRTXamlToolkit.Controls.DataVisualization'.
D:\Builds\3\TEST\CI - Check In Build\src\TEST\.nuget\NuGet.targets (92): The command ""D:\Builds\3\TEST\CI - Check In Build\src\TEST\.nuget\NuGet.exe" install "D:\Builds\3\TEST\CI - Check In Build\src\TEST\TEST\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "D:\Builds\3\TEST\CI - Check In Build\src\TEST\ "" exited with code 1.
EXEC: The remote name could not be resolved: 'www.nuget.org'
EXEC: The remote name could not be resolved: 'www.nuget.org'
EXEC: The remote name could not be resolved: 'www.nuget.org'
EXEC: The remote name could not be resolved: 'www.nuget.org'
$/TEST/TEST/SAPSalesCentral.sln compiled

Package restore is enabled. 包恢复已启用。

I have a packages folder on my developers machine - where all my nuget packages are stored. 我的开发人员机器上有一个packages文件夹 - 存储了我的所有nuget包。

Can i manually add packages folder to my project and include .DLL from it to store it on build server so that nuget restore wasn't needed? 我可以手动将包文件夹添加到我的项目中并从中包含.DLL以将其存储在构建服务器上,以便不需要nuget恢复吗?

Can the user running the Build service access internet? 运行Build服务的用户可以访问Internet吗? Sometimes you have to logon using that account a set a proxy in Internet Explorer. 有时您必须使用该帐户登录,在Internet Explorer中设置代理。

If your build server doesn't have internet access, you need to setup a local NuGet feed . 如果您的构建服务器没有Internet访问权限,则需要设置本地NuGet源 You can use the build server itself for that purpose. 您可以将构建服务器本身用于此目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM