Skip to content

Instantly share code, notes, and snippets.

@mhinze
Created January 6, 2012 17:37
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