This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
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.
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .XDocumentExtensions - Containing Type
- XDocumentExtensions
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 |
