I am trying to get the Nugetter templates to work with my TFS 2012 install and i think i have things set up correctly. My Solution now builds, but at the end i have an error about Nuget.
Does any one know where i should look to fix this?
Exception Message: File not found (type FileNotFoundException)
Exception Stack Trace: at TfsBuild.NuGetter.Activities.XmlGetElement.GetXmlElementValue(String filePath, String xpathExpression, String xmlNamespace, String xmlNamespacePrefix)
at TfsBuild.NuGetter.Activities.XmlGetElement.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Aug 14, 2013 at 11:24 AM
Edited Aug 14, 2013 at 2:38 PM
I had exactly same problem,
Found issue: when creating new .ps1 and .nuSpec files in .nuget folder (I created by copying and pasting existing), VS saved files to solution root, not .nuget folder as you would expect, so could not find files specified in the spec xml file.
Moved files (and manually updated sln file) and all worked beautifully (after a little TFS jiggery pokery)
Hope this helps you if you have not already found issue.
Feb 16, 2015 at 1:53 PM
Edited Feb 16, 2015 at 1:56 PM
In my case it was different issue.
Issue was with missing nuspec file in folder $BuildActivities\Nuspec.
I just created/added the file TFS. it started working..
<releaseNotes>Summary of xxxx.xx.Data.All</releaseNotes>
<dependency id="Autofac" version="184.108.40.2062"/>
<dependency id="Autofac.Wcf" version="220.127.116.112" />
<dependency id="FluentValidation" version="18.104.22.168" />
for detail information
visit TFS with powershell link