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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.TeamFoundation.Build.Client; | |
using System.Activities; | |
using System.Data.SqlClient; | |
using System.Data; | |
using System.IO; | |
using Microsoft.TeamFoundation.Build.Workflow.Tracking; |
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
Get-TfsItemHistory "$/PROJECTNAME" -Recurse -Version "D1/1/10~D12/31/10" | Sort CreationDate | Select ChangeSetId,Committer,Comment,CreationDate | Format-Table ChangeSetId,CreationDate,Committer,Comment -Auto -Wrap | out-file "full.txt" |
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
<#=code.SpaceAfter(Accessibility.ForSetter(complexProperty))#>set | |
{ | |
if ( (<#=code.FieldName(complexProperty)#> != null && value == null) || | |
(<#=code.FieldName(complexProperty)#> == null && value != null) || | |
(<#=code.FieldName(complexProperty)#> != null && !<#=code.FieldName(complexProperty)#>.Equals(value)) | |
) | |
{ | |
<#=ChangingMethodName(complexProperty)#>(value); | |
ReportPropertyChanging("<#=complexProperty.Name#>"); | |
<#=code.FieldName(complexProperty)#> = SetValidValue(<#=code.FieldName(complexProperty)#>, value, "<#=complexProperty.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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Xml; | |
namespace BuildXUnitProjectFile | |
{ | |
class Program |
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
if ($args.Length -eq 1) | |
{ | |
if (Test-Path $args[0]) | |
{ | |
$tempFile = $args[0]+".tmp"; | |
Write-Host "Getting content from: "$args[0]; | |
Write-Host "Writing to temp file: " $tempFile; | |
$newGuid = [System.Guid]::NewGuid().Guid; | |
$newGuid = "Guid(""" + $newGuid + """)"; | |
Write-Host "Replacing with: " $newGuid; |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace WCFDIProxy | |
{ | |
public partial class ServiceContainer | |
{ | |
partial void GetServiceLocators(ref List<ServiceContainer.ServiceLocator> locators) |
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
$tfsServerString = "Path To Collection" | |
$tfs = Get-TfsServer $tfsServerString | |
Get-TfsShelveset -Server $tfs -owner * | where {$_.CreationDate -le [DateTime]::Now.AddDays(-90)} | Sort {$_.CreationDate} | Format-Table |
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
1) Grab the Guid of the project in question. I did through through VS 2010 and clicking the properties of the project itself. | |
2) Grab the SSID of the project Collection Administrators. (You might be able to skip this step, I just couldn't get the syntax right in TFSSecurity to use it by name). | |
tfssecurity /i "Project Collection Administrators" /collection:<collectionPath> | |
output: | |
SID: S-1-********** |
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
/** | |
* Created with IntelliJ IDEA. | |
* User: efrey | |
* Date: 6/11/13 | |
* Time: 11:00 AM | |
* To change this template use File | Settings | File Templates. | |
* | |
* http://bugs.sun.com/view_bug.do?bug_id=6357433 | |
* | |
* |
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
$subnetName = $OctopusParameters["Azure Subnet Name"] | |
$virtualNetworkName = $OctopusParameters["Azure Virtual Network Name"] | |
$sslCert = $OctopusParameters["Azure SSLCertificate Thumbprint"] | |
$caCert = $OctopusParameters["Azure CACertificate Thumbprint"] | |
$vmName = $OctopusParameters["Azure Vm Name"] | |
$pathToCSCFG = [System.IO.Path]::Combine($OctopusOriginalPackageDirectoryPath, "ServiceConfiguration.Cloud.cscfg") | |
$xml = [xml](Get-Content $pathToCSCFG) | |
if (![string]::IsNullOrEmpty($virtualNetworkName)){ |
OlderNewer