XDocumentExtensions.

GetVersion(XDocument) Method

Summary

Returns the project version, combining VersionPrefix and VersionSuffix when both are present, falling back to Version, and ultimately "1.0.0" when nothing is set.

Syntax

public static string GetVersion(this XDocument document)

Parameters

Name Type Description
document XDocument the document

Return Value

Type Description
string the resolved version string