-
-
Notifications
You must be signed in to change notification settings - Fork 616
clr
Jason Perkins edited this page Nov 12, 2014
·
6 revisions
The clr function enables Microsoft's Common Language Runtime for a project or configuration.
#!lua
clr "value"
See /clr (Common Language Runtime Compilation) in the Visual Studio documentation for more information.
value is one of the following:
Value | Description |
---|---|
Off | No CLR support |
On | Enable CLR support |
Pure | Enable pure mode MSIL. Equivalent to "On" for .NET projects. |
Safe | Enable verifiable MSIL. Equivalent to "On" for .NET projects. |
Unsafe | Enable unsafe operations. Equivalent to "On" for Managed C++ projects. |
CLR settings that do not make sense for the current configuration, such setting CLR support for a C# project to "Off", will be ignored.
Solutions, projects, and project configurations.
Premake 5.0.
Set up a managed C++ project.
#!lua
project "MyProject"
kind "ConsoleApp"
language "C++"
clr "On"
Enable unsafe code in a C# project.
#!lua
project "MyProject"
kind "ConsoleApp"
language "C#"
clr "Unsafe"