Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > language


language

The language function sets the programming language used by a project.

#!lua
language ("lang")

Premake currently supports C, C++, and C#. Not all languages are supported by all of the generators; for instance, SharpDevelop does not (currently) support C or C++ development, and Code::Blocks does not support the .NET languages (C#, Managed C++).

Applies To

Solutions and projects.

Parameters

lang is the language identifier. This is a string value, set to one of C, C++, or C#. The value is not case sensitive.

Examples

Set the project language to C++.

#!lua
language "C++"

Set the project language to C#

#!lua
language "C#"
Clone this wiki locally