This project is read-only.
2
Vote

Version seed XPATH should fall back to Solution[@name='Default']

description

I was actually surprised to find out that NuGetter doesn't already support this.

My XML version seed contains a "Default" solution configuration that I want to use. The TfsVersioning build activity supports supports this scenario, and its use is clearly documented.

However, the NuGetter build process crashes with an exception:
Exception Message: The element '/VersionSeed/Solution[@name='MySolution']/AssemblyVersionPattern' in the XML file was not found. (type ArgumentException)
Exception Stack Trace:    at TfsBuild.NuGetter.Activities.XmlGetElement.GetXmlElementValue(String filePath, String xpathExpression, String xmlNamespace, String xmlNamespacePrefix)
   at TfsBuild.NuGetter.Activities.GetVersionPattern.ExtractVersion(String versionPatternOrSeedFilePath, String packageId, String queryString, String sourcesDirectory)
   at TfsBuild.NuGetter.Activities.GetVersionPattern.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)

comments