Skip to content

Instantly share code, notes, and snippets.

@mhinze
Created January 6, 2012 17:37
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 mhinze/1571601 to your computer and use it in GitHub Desktop.
Save mhinze/1571601 to your computer and use it in GitHub Desktop.
aspnet compile script for SolutionScripts
function global:aspcomp()
{
$dir = Join-Path $solutionScriptsContainer "..\Your.Web.Project" -Resolve
$bin = Join-Path $dir "bin"
$compiler = Join-Path $([System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()) "aspnet_compiler.exe"
& $compiler -p $dir -v $bin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment