Defines flags to specify aspects of the build process, such as project properties (that is, Configuration type Debug or Release) or MSBuild process settings (that is, maxcpucount to run builds in parallel).
Platforms: Web (.Net, .Net Core)
This property applies only at design-time.
Below are some configuration samples for this property:
/p:PlatformTarget=x86 /p:Configuration=Debug /p:GxExternalReference=Artech.Security.Common.dll
The above indicates three properties for the projects:
/p:PlatformTarget = x86 --- To be compiled to run in 32 bits.
/p:Configuration = Debug --- To be compiled in debug mode, so that it generates the PDB of each DLL.
/p:GxExternalReference=<assembly> --- References to external DLLs are added.
For the build process itself, you could set:
/maxcpucount or / m --- If you compile several projects, they are compiled in parallel, which is faster.
-m /v:quiet /p:Configuration=Debug /p:PlatformTarget=x86 /p:GxExternalReference="MyAPI.dll;MyLibrary.dll"
It indicates the following:
-m => To compile in parallel using all the processors available. If you compile 10 main objects, they will be compiled in parallel, as long as the processors of the machine allow it.
/v:quiet => Sets the output to quiet, so that it is similar to the previous mechanism (csc).
/p:Configuration=Debug => To compile in debug mode (generating .pdb files).
/p:PlatformTarget=x86 => To compile for 32 bits (equivalent to /platform:x86 in csc.exe).
/p:GxExternalReference="MyAPI.dll;MyLibrary.dll" => To include MyAPI.dll and MyLibrary in references (equivalent to /r:bin\MyAPI.dll /r:bin\MyLibrary.dll in csc.exe).
It forces to build for a specific TargetFramework (for a valid list of values, see here).
This property is available since GeneXus 16 upgrade 10.