tfs - Team Foundation Service build fails on NuGet package restore -
i'm having kind of odd problem team foundation service build. queue , starts fine, fails following error:
c:\a\src\platform\prod\platform.web\platform.web.csproj (436): build restored nuget packages. build project again include these packages in build. more information, see http://go.microsoft.com/fwlink/?linkid=317568.
so re-queue build per message/url and...it happens again. i've googled around can't seem figure out issue is. can build fine in visual studio , solution configured package restore. thoughts?
thanks in advance.
the solution specified in link in error message itself.
this happening due improvement specified in page:
the improvement
we’ve updated microsoft.bcl.build use different approach. new version use conditional import similar nuget’s automatic import feature does. allow project load in visual studio.
however, microsoft.bcl.build adds target project run after build finished. target checks whether current build restored packages , if fail build actionable error message:
building second time fix error. please note error appear if packages missing it’s not have build twice.
then specifies below case of build server / continuous integration (ci):
this solution doesn’t address build server / continuous integration (ci) scenarios. in order use package restore on build server, have 2 options:
- check-in .targets file.
- explicitly run nuget package restore prior building project/solution.
so, suppose issue resolution above 2 steps should followed.
Comments
Post a Comment