0

I am trying to use NuGet restore to pull the packages on the TFS build process, however, it keeps giving out the error EXEC: Unable to connect to the remote server

If I manually execute the MsBuild MyProjet.sln, it will build without issues.

Any help will be greatly appreciated.

J.W.
  • 17,991
  • 7
  • 43
  • 76
  • possible duplicate of [Nuget Unable to connect to remote server](http://stackoverflow.com/questions/11553591/nuget-unable-to-connect-to-remote-server) – Daniel Mann Dec 28 '14 at 04:32
  • yes, I see that question, but it seems to be a different issue. I was able to execute the whole build process from the command line, however, I was not able to run it in the build process. – J.W. Dec 28 '14 at 16:49

1 Answers1

1

It turns out that TFS service is running at a different account than my own account. After log on as the TFS account and turned on proxy server for that account, NuGet is able to download the package and finish the build.

J.W.
  • 17,991
  • 7
  • 43
  • 76