Review build
This commit is contained in:
@@ -897,10 +897,10 @@ if ($Build) { # Install the service
|
|||||||
# Generate the service .EXE from the C# source embedded in this script
|
# Generate the service .EXE from the C# source embedded in this script
|
||||||
|
|
||||||
# Overwrite for builder
|
# Overwrite for builder
|
||||||
$exeFullName="$exeName"
|
$exeFullName=".\$exeName"
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Write-Verbose "Compiling $exeFullName"
|
Write-Output "Compiling $exeFullName"
|
||||||
Add-Type -TypeDefinition $source -Language CSharp -OutputAssembly $exeFullName -OutputType ConsoleApplication -ReferencedAssemblies "System.ServiceProcess" -Debug:$false
|
Add-Type -TypeDefinition $source -Language CSharp -OutputAssembly $exeFullName -OutputType ConsoleApplication -ReferencedAssemblies "System.ServiceProcess" -Debug:$false
|
||||||
} catch {
|
} catch {
|
||||||
$msg = $_.Exception.Message
|
$msg = $_.Exception.Message
|
||||||
|
|||||||
Reference in New Issue
Block a user