11 lines
414 B
PowerShell
11 lines
414 B
PowerShell
$csc = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
|
|
if (-not (Test-Path $csc)) {
|
|
$csc = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe"
|
|
}
|
|
if (-not (Test-Path $csc)) {
|
|
Write-Error "Compilatore .NET Framework csc.exe non trovato (Framework64 / Framework)."
|
|
exit 1
|
|
}
|
|
& $csc /nologo /unsafe /optimize+ /target:exe /out:bin\LoopbackCapture.exe bin\LoopbackCapture.cs
|
|
exit $LASTEXITCODE
|