Fix version detection, use <PackageVersion> if exists, then <Version>
ln.build - build0.l--n.de build job pending
Details
ln.build - build0.l--n.de build job pending
Details
parent
833890438f
commit
e2a6124707
|
@ -29,7 +29,7 @@ namespace ln.build.support.dotnet
|
||||||
{
|
{
|
||||||
XmlDocument projectFile = new XmlDocument();
|
XmlDocument projectFile = new XmlDocument();
|
||||||
projectFile.Load(FileName);
|
projectFile.Load(FileName);
|
||||||
XmlNode nodeVersion = projectFile.SelectSingleNode("Project/PropertyGroup/Version");
|
XmlNode nodeVersion = projectFile.SelectSingleNode("Project/PropertyGroup/PackageVersion") ?? projectFile.SelectSingleNode("Project/PropertyGroup/Version");
|
||||||
return (nodeVersion == null) ? null : SemVersion.Parse(nodeVersion.InnerText);
|
return (nodeVersion == null) ? null : SemVersion.Parse(nodeVersion.InnerText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue