This guide allows you to beta test compilation with msbuild instead of the default mechanism.
For building applications in .NET Generator Environments, the default compiler is the 'csc.exe' of .NET Framework. In GeneXus Beta, MSBuild can be used to compile.
Benefits of using this new mechanism are
- Build & compile Performance due to parallel compilation
- A standard project file is generated, so projects can be opened with Visual Studio too
- Download the latest beta from https://www.genexus.com/betatesters
- Create new knowledge base and Build All.
- Please send feedback to the rest of the Beta testers and GeneXus team.
-m /v:quiet /p:Configuration=Debug /p:PlatformTarget=x86 /p:GxExternalReference="MyAPI.dll;MyLibrary.dll"
-m => To compile in parallel using all the processors available. If you compile 10 mains, those 10 mains will be compiled in parallel, provided 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 32bits (is equivalent to /platform:x86 in csc.exe)
/p:GxExternalReference="MyAPI.dll;MyLibrary.dll" => To include MyAPI.dll and MyLibrary in references (is equivalent to /r:bin\MyAPI.dll /r:bin\MyLibrary.dll in csc.exe)
Note: .NET Core Generator already uses this mechanism as the only one suitable.