Commandline Compiler
From The Oxygene Language Wiki
This is a Platform topic
Feel free to add your notes to this topic below.
Delphi Prism provides the best developer experience when executed within an IDE such as Visual Studio, but it can also be used via the command line, both for general development and for integration with automated build environments.
The command line compiler for Delphi Prism is available as a free download, and requires no license for "Delphi Prism for Visual Studio" to be purchased. This also allows deployment of the compiler for use on ASP.NET web servers.
Oxygene.exe vs. MSBuild
There are two ways to run builds of Delphi Prism projects from the command line:
MSBuild
The compiler provides support for MSBuild and project files are MSBuild compatible. This allows you to build any Delphi Prism project using the standard MSBuild infrastructure provided by Microsoft, as well as to build Delphi Prism projects from automated build solutions that support MSBuild.
The MSBuild engine is also used when building projects inside the Visual Studio IDE, and provides many benefits over the standalone Oxygene.exe command line compiler, most importantly the ability for projects to include custom MSBuild Target to provide platform-specific extensions to the compile process, such as processing of WPF XAML files or Cocoa# interface files.
Oxygene.exe
In addition to MSBuild, the compiler is also available in form of the standalone oxygene.exe compiler executable. Oxygene.exe can be used to build individual .pas files or .oxygene project files, and is a suitable solution for compiling projects that do not rely on custom MSBuild targets. (running Oxygene.exe on a project with custom targets will produce an error).
Introduced with the first version of the product, Oxygene.exe can build both MSBuild-format and old-style 1.0 format project files.
Oxygene.exe can also be used to run the compiler on .NET 1.1, Mono and Portable.NET, or on other platforms where MSBuild is not available.
See oxygene.exe for more details on how to invoke the Delphi Prism command line compiler.
See Also
Area: Oxygene Platforms
Platform Glossary — Keywords — Types — FAQ — How To