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
#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
using System; | |
using System.Drawing; | |
using System.Windows.Forms; | |
namespace SampleForms | |
{ | |
public partial class SampleForm : Form | |
{ | |
public SampleForm() | |
{ |
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
<# | |
.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
trigger: | |
- master | |
resources: | |
- repo: self | |
variables: | |
azureSubscription: '<azure-subscription>' | |
dockerRegistryServiceConnection: '<service-connection>' | |
imageRepository: '<repository-name>' |
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
Param | |
( | |
# URL to the Azure DevOps incoming webhook endpoint. Expected format is | |
# https://dev.azure.com/<org>/_apis/public/distributedtask/webhooks/<svc-trig>/?api-version=6.0-preview. | |
[uri] | |
$Url, | |
# Shared secret used to sign the JSON payload. Must be the same value supplied during | |
# the creation of the Incoming Webhook service connection | |
[string] |
OlderNewer