Skip to content

Instantly share code, notes, and snippets.

@FredrikL
Created June 21, 2012 13:45
Show Gist options
  • Save FredrikL/2965802 to your computer and use it in GitHub Desktop.
Save FredrikL/2965802 to your computer and use it in GitHub Desktop.
Build everything
foreach($sln in (Get-ChildItem . -recurse -include *.sln))
{
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild /m $sln
if ($LastExitCode -ne 0) { throw 'Build error' }
}
foreach($TestFile in (Get-ChildItem . -recurse -include *Test.csproj)) {
C:\Tools\NUnit-2.6.1\bin\nunit-console.exe /nologo /noshadow $TestFile
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment