2

I have a Git based Team Project hosted on Team Foundation Service and to avoid checking in packages into the repository, I have enabled NuGet package restore on the solution. I may have missed a fundamental step in having the hosted build controller source these packages (the project is a standard MVC4 Web Api template) as I get this from the failed build log

  Unable to find version '2.0.20715.0' of package 'Microsoft.AspNet.Razor'.
  Unable to find version '4.0.20710.0' of package 'Microsoft.AspNet.WebApi'.
  etc..

It doesn't seem correct to publish these packages to my own nuget feed (myget.org) as they are already available via package manager console, I simple need the TFS hosted controller to fetch them. Does anyone know how I might achieve that?

Thanks!

MikeW
  • 4,749
  • 9
  • 42
  • 83
  • Does the server have access to the Internet generally? I.e. no proxy that might limit it to certain sites? – ta.speot.is Jun 15 '13 at 06:05
  • This is all fine from connectivity standpoint - I have done this with a 3rd party product to manage NaaS with TFS (expensive tho) – MikeW Jun 15 '13 at 06:24
  • 1
    Have you checked all the files in, after enabling package restore? Specifically the SLN? I got screwed over once by that. (file, save all in visual studio) – ta.speot.is Jun 15 '13 at 06:28
  • Just had a look at that, it's all checked in. I have a empty packages folder (except for repositories.config), a packages.config at the project root which lists all the packages. – MikeW Jun 15 '13 at 06:41
  • It looks like @abatishchev had problems with an MVC4 project in the comments here http://stackoverflow.com/questions/15899638/build-issue-when-using-package-restore-in-team-foundation-service – ta.speot.is Jun 16 '13 at 01:12
  • Many thanks for your help, in the end I pushed each of the problem packages manually to the nuget feed which got it compiling. So I sort of worked around the issue rather than finding out why their build controller couldnt download them directly. – MikeW Jun 16 '13 at 02:46
  • You're welcome. If nothing else, take heart that it seems like [it's a pretty common problem](http://social.msdn.microsoft.com/Forums/en-US/TFService/thread/1fc22ffb-1cdb-41e4-a320-8eca8cfb342d/) and probably not your fault. – ta.speot.is Jun 16 '13 at 09:03

0 Answers0