< Back

Invoke-AxBuild

Sat Jan 11, 2020 8:16 am

NAME Invoke-AxBuild



SYNOPSIS

Start the AxBuild.exe





SYNTAX

Invoke-AxBuild [-BinDirectory <String>] [-AlternativeBinPath <String>] [-InstanceNumber <String>] [-DatabaseServer

<String>] [-ModelstoreDatabase <String>] [-Workers <Int32>] [-OutputPath <String>] [-ShowOriginalProgress]

[-OutputCommandOnly] [<CommonParameters>]





DESCRIPTION

Invoke the AxBuild.exe with the necessary parameters to make it compile your application





PARAMETERS

-BinDirectory <String>

The full path to the bin directory where the AOS instance is physical installed



Required? false

Position? named

Default value $Script:ActiveAosBindirectory

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-AlternativeBinPath <String>

The full path to the client bin directory where AX 2012 Client is physical installed



Required? false

Position? named

Default value $Script:ClientBin

Accept pipeline input? false

Accept wildcard characters? false



-InstanceNumber <String>

The 2 digit ([0-9][0-9]) number that the AOS instance has on the server



Required? false

Position? named

Default value $Script:ActiveAosInstanceNumber

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-DatabaseServer <String>

The name of the server running SQL Server



Required? false

Position? named

Default value $Script:ActiveAosDatabaseserver

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ModelstoreDatabase <String>

The name of the AX 2012 modelstore database



Required? false

Position? named

Default value $Script:ActiveAosModelstoredatabase

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Workers <Int32>

Number of workers that you want to utilize while compiling



The built-in logic from AxBuild.exe will choose a number equal to your visible cores

Leaving it blank or with 0 (Zero) will use the built-in logic from AxBuild.exe



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-OutputPath <String>

Path to the log file you want AxBuild.exe to output to



Default location is: "c:\\temp\\ax2012.tools\\AxBuild\\"



Required? false

Position? named

Default value $(Join-Path $Script:DefaultTempPath "AxBuildLog")

Accept pipeline input? false

Accept wildcard characters? false



-ShowOriginalProgress [<SwitchParameter>]

Instruct the cmdlet to show the standard output in the console



Default is $false which will silence the standard output



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-OutputCommandOnly [<SwitchParameter>]

Instruct the cmdlet to output a script that you can execute manually later



Using this will not import any AX 2012 models into the model store



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String





NOTES





Author: M??????tz Jensen (@Splaxi)



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-AxAosInstance | Invoke-AxBuild



This will find all AOS instances using the Get-AxAosInstance on the machine and pipe them to Invoke-AxBuild.

For each AOS instance found it will start the AxBuild.exe against their individual details.

It will store the log file under the default ax2012.tools folder.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Invoke-AxBuild



This will start the AxBuild.exe against the ActiveAos configuration.

It will store the log file under the default ax2012.tools folder.











RELATED LINKS