Skip to content

TeamCity without MSBuild #68

@colinbowern

Description

@colinbowern

Can we get detection and output of TC data in the executable? PSAKE works well for us as a build script and it would be great to have it detect in the same way xunit console does. Today I use the following workaround

Properties {
    $VersionCalculator = (Get-ChildItem -Path Packages -File "GitFlowVersion.exe" -Recurse).FullName
}

Task CalculateVersion -Description "Calculates the version information based on current location in source control repository" {
    $RawVersionInfo = Exec { [string](& $VersionCalculator) }
    $VersionInfo = ConvertFrom-Json $RawVersionInfo
    TeamCity-SetBuildNumber $VersionInfo.ShortVersion    
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions