Summary
Updates the build version.
- Namespace
- Cake
.Common .Build .AppVeyor - Containing Type
- IAppVeyorProvider
Syntax
void UpdateBuildVersion(string version)
Examples
if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
BuildSystem.AppVeyor.UpdateBuildVersion("2.0.0.0");
}
else
{
Information("Not running on AppVeyor");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
AppVeyor.UpdateBuildVersion("2.0.0.0");
}
else
{
Information("Not running on AppVeyor");
}
Parameters
Name | Type | Description |
---|---|---|
version | string | The new build version. |
Return Value
Type | Description |
---|---|
void |