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
// NOTE: You must reference the assemblies Microsoft.Build.dll and Microsoft.Build.Framework.dll | |
// Both can be tipically found in C:\Program Files (x86)\MSBuild\<VS version>\bin | |
using System; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Logging; | |
namespace ColorAwareMSBuildLogger | |
{ | |
public class Logger : ConsoleLogger |
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
// Reference: Microsoft.TeamFoundation | |
// Reference: Microsoft.TeamFoudnation.Client | |
// Reference: Microsoft.TeamFoundation.Common | |
// Reference: Microsoft.TeamFoundation.Framework.Server | |
// Reference: Microsoft.TeamFoundation.Server | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Client | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Server.Dataaccesslayer | |
// Reference: Microsoft.TeamFoundation.WorkItemTracking.Server.DataServices | |
// Copy resulting DLL to %PROGRAMFILES%\Microsoft Team Foundation Server 2010\Application Tier\Web Services\Bin\Plugins |
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 | |
Checks whether the IP address of the given server has changed since the last time this script was called | |
#> | |
Function Resolve-ServerAddress | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true, Position=0)] | |
[string] |
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
Function Get-IfNull($Value, $DefaultValue) | |
{ | |
if($Value -eq $null) | |
{ | |
return $DefaultValue | |
} | |
return $Value | |
} | |
Set-Alias '??' Get-IfNull |
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
param ( | |
[string] | |
$AgentZip = 'agent.zip', | |
[string] | |
$AgentDirectory = "$($env:SystemDrive\Agent)", | |
[Parameter(Mandatory=$true)] | |
[string] | |
$DeploymentPoolName, |
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
#Based on code from http://superuser.com/questions/470319/how-to-enable-internet-connection-sharing-using-command-line | |
Function Set-NetConnectionSharing | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$InternetConnection, |
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 | |
Gets the settings of a Git repository. | |
#> | |
Function Get-TfsGitRepositorySetting { | |
[CmdletBinding()] | |
Param ( | |
# Specifies the name of the setting to retrieve. If not specified, all settings are returned. | |
[Parameter(Position = 0)] | |
[SupportsWildcards()] |
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
#requires -Modules TfsCmdlets | |
<# | |
.SYNOPSIS | |
Modifies the settings of a Git repository. | |
#> | |
Function Set-TfsGitRepositorySetting { | |
[CmdletBinding(SupportsShouldProcess = $true)] | |
Param ( | |
# Specifies the name of the setting to modify. |
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
@description('Specifies the name of the Azure Storage account.') | |
param storageAccountName string | |
@description('Specifies the name of the blob container.') | |
param containerName string = 'tfstate' | |
@description('Specifies the location in which the Azure Storage resources should be deployed.') | |
param location string = resourceGroup().location | |
@description('Specifies the SKU for the Storage Account.') |
OlderNewer