Skip to content

Instantly share code, notes, and snippets.

@natemcmaster
Created February 26, 2016 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natemcmaster/98f0a454bbd70ff20320 to your computer and use it in GitHub Desktop.
Save natemcmaster/98f0a454bbd70ff20320 to your computer and use it in GitHub Desktop.
$xunit = "$PSScriptRoot\.build\KoreBuild-dotnet\build\xunit.runner.console\tools\xunit.console.exe"
$dotnet = "$env:LOCALAPPDATA\Microsoft\dotnet\cli\bin\dotnet.exe"
$cwd=Get-Location
$projectName=Split-Path $cwd -Leaf
$publishDir="$cwd\obj\test"
$targetBinary="$publishDir\$projectName.dll"
& $dotnet publish -f net451 -o $publishDir $cwd
& $xunit $targetBinary @args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment