This file contains hidden or 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
# Add this to the end of your ~/.zshrc file and run | |
# source ~/.zshrc | |
# then you can use 'nukebin' or 'nukebin -pack' in any of your Xamarin/.Net projects. | |
nukebin(){ | |
find . -iname "bin" -o -iname "obj" | xargs rm -rfv | |
if [ "$1" = "-pack" ] | |
then | |
find . -iname "packages" | xargs rm -rfv |
This file contains hidden or 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
$ManifestFile = Get-ChildItem -Path $Env:BUILD_SOURCESDIRECTORY -Filter AndroidManifest.xml -Recurse | |
$fileXml = [xml] (Get-Content $ManifestFile.FullName ) | |
$xpath = "//manifest" | |
Select-Xml -xml $fileXml -XPath $xpath | %{ | |
$_.Node.SetAttribute("android:versionName", "1.0.0.$Env:BUILD_BUILDNUMBER") | |
$_.Node.SetAttribute("android:versionCode", $Env:BUILD_BUILDNUMBER) | |
} | |
$fileXml.Save($ManifestFile) | |
Get-Content $ManifestFile |