This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from os import listdir | |
from os import mkdir | |
from os import makedirs | |
from os import path | |
import shutil | |
import xml.etree.ElementTree as xmltree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Script for TeamCity to update assembly-version on each build. | |
.DESCRIPTION | |
PowerShell helper script to be consumed by TeamCity. It is capable of updating AssemblyInfo.cs | |
and AssemblyCommonInfo.cs in searching of 'AssemblyVersion' attribute. It can do a full or partial | |
replace, later print new version into a specified text file and in way recognized by TeamCity itself |