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 ( (Get-PSSnapin -Name pseventing -ErrorAction SilentlyContinue) -eq $null ) | |
{ | |
Add-PsSnapin pseventing | |
} | |
Start-KeyHandler -CaptureCtrlC | |
$Script:initialdir = "C:\SG\SDP\Trunk\SDP\SDP" | |
$fsw = new-object system.io.filesystemwatcher |
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
Feature : $FeatureName$ | |
In order $DesiredOutcome$ | |
As a $Role$ | |
I should $ActionThatDeliversBusinessBenefit$ | |
Scenario: $ScenarioName$ | |
Given $given$ | |
When $when$ | |
Then $then$ |
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 cleanBin { | |
param ([string]$path) | |
write-host "Cleaning bin from: $path" | |
get-childitem $path -include bin -recurse | remove-item -force -confirm:$false -recurse | |
write-host "Cleaning obj from: $path" | |
get-childitem $path -include obj -recurse | remove-item -force -confirm:$false -recurse | |
write-host "Cleaning csx from: $path" |
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="CheckinDance" ToolsVersion="3.5" > | |
<UsingTask TaskName="MSBuild.Community.Tasks.NUnit" AssemblyFile="..\Tools\MSBuildCommunityTasks\MSBuild.Community.Tasks.dll" /> | |
<PropertyGroup> | |
<SolutionFile>.\MySoln.sln</SolutionFile> | |
<UiTestSln>.\MySoln.UI.Tests.sln</UiTestSln> | |
<OutputPath Condition="'$(OutputPath)' == ''">.\Bin\</OutputPath> | |
<NUnitPath>..\Tools\NUnit-2.5.2\</NUnitPath> | |
<StatLightPath>..\Tools\StatLight\StatLight.exe</StatLightPath> |
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
#Need to define $pattern | |
get-childitem . | get-childitem | select-string -pattern $pattern | foreach {$_.line} |
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
# see http://msdn.microsoft.com/en-us/library/cc755366%28v=ws.10%29.aspx | |
md c:\perflogs\daily_log | |
#ensure logman has access to the newly created dir | |
Logman create counter daily_perf_log -v mmddhhmm -c "\Processor(_Total)\% Processor Time" "\Memory\Available bytes" -si 00:15 -o "c:\perflogs\daily_log" -f csv | |
Logman start daily_perf_log | |
#to stop collecting data | |
Logman stop daily_perf_log |
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
$buildfile = "build.log" | |
$outputfile = "FxCopList.csv" | |
$hash = @{} # used to filter duplicates | |
$fxcopFilter = "[CodeAnalysis]" | |
gc $buildfile | | |
%{if($_.contains($fxcopFilter) -and $_.contains(" CA")) {$_}} | | |
%{ | |
$startindex = $_.IndexOf($fxcopFilter) + $fxcopFilter.Length; |
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-ChildItem -exclude *.bak -Recurse -Include *.csproj | | |
Where-Object {$_.Attributes -ne "Directory"} | | |
ForEach-Object { | |
Copy-Item $_ "$($_).bak"; | |
(Get-Content $_) -replace "<HintPath>..\\..\\Lib","<HintPath>..\\..\\..\\Lib" | Set-Content -path $_ | |
} |
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 cleanSvn { | |
param ([string]$path) | |
write-host "Cleaning svn from: $path" | |
get-childitem $path -include .svn -recurse -force | remove-item -force -confirm:$false -recurse | |
} | |
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
$pattern = "HintPath" | |
get-childitem . | get-childitem | select-string -pattern $pattern | | |
foreach { $_.line.Replace("<HintPath>", "").Replace("</HintPath>", "").Replace("..\\", "").Replace("..\", "").Trim() } | | |
sort | Get-Unique > files.txt |
OlderNewer