Reputation: 60841
When trying to generate a build, I am getting the following error:
1 error(s), 0 warning(s)
$/source control my solution....../Web.sln - 1 error(s), 0 warning(s), View Log File
D:\Builds\.....zWeb\.nuget\NuGet.targets (93): The underlying connection was closed: An unexpected error occurred on a send.
I am configuring the repository URLs both here:
And in the NuGet.config file:
I've tried the following:
What am I doing wrong? How do I get this to build?
In case it is relevant, here's my nuget.targets file.
Upvotes: 1
Views: 120
Reputation: 2848
Hi try to place file nuget.config in root of your solution like
x:\SolutionFolder\nuget.config x:\SolutionFolder\Web.sln
then change nuget.config
to have
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="packages" />
</config>
<packageSources>
<add key="Your NuGet" value="\\YourServer\Nuget Gallery" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</packageSources>
</configuration>
the repositoryPath is relative to nuget.config file localization create this network share and be sure that your use have access to it
<add key="Your NuGet" value="\\YourServer\Nuget Gallery" />
What tfs version and visual studio version you use localy and on the build server ?
Upvotes: 1