dotnet-installer/src/dotnet/commands/dotnet-compile-native
2016-03-30 11:49:37 -05:00
..
appdep Updating dependencies from last known good builds 2016-03-30 11:49:37 -05:00
enums Everything in the same project 2016-02-01 14:56:32 -08:00
IntermediateCompilation Add dotnet-compile-native linker script for Linux / OSX 2016-03-28 17:28:44 -07:00
ArgumentsParser.cs Include project.json dependencies for native 2016-02-14 17:20:23 -08:00
ArgValues.cs Include project.json dependencies for native 2016-02-14 17:20:23 -08:00
DirectoryExtensions.cs Everything in the same project 2016-02-01 14:56:32 -08:00
EnumExtensions.cs Everything in the same project 2016-02-01 14:56:32 -08:00
ILCompilerInvoker.cs Include project.json dependencies for native 2016-02-14 17:20:23 -08:00
NativeCompiler.cs Everything in the same project 2016-02-01 14:56:32 -08:00
NativeCompileSettings.cs Include project.json dependencies for native 2016-02-14 17:20:23 -08:00
Program.cs Everything in the same project 2016-02-01 14:56:32 -08:00
README.md Fix a couple of typos in the .md/doc files 2016-03-22 00:11:19 -04:00
RuntimeExtensions.cs Everything in the same project 2016-02-01 14:56:32 -08:00
RuntimeInformationExtensions.cs Everything in the same project 2016-02-01 14:56:32 -08:00

% DOTNET-COMPILE-NATIVE(1) % Zlatko Knezevic zlakne@microsoft.com % January 2016

NAME

dotnet-compile-native -- Compiles IL binaries to native binaries.

SYNOPSIS

dotnet compile [--appdepsdk] [--configuration] [--ilcargs] [--linklib] [--logpath] [--mode] [--out] [--reference] [--temp-out] [--verbose]

DESCRIPTION

The compile-native command compiles IL assemblies to native machine code. It is used by dotnet-compile --native.

The output is a native exe that conforms to the architecture of the underlying operating system (i.e. running on 64-bit OS will produce a native 64-bit exe). This can be overriden via the --arch switch and specifying the wanted architecture. The executable has a default extension of "" on Linux and OS X and ".exe" on Windows. The source must include a `static void Main(string[] args) entry point and specify compilationOptions.emitEntryPoint in the project.json.

Output files are written to the child bin folder, which will be created if it doesn't exist. Files will be overwritten as needed.

OPTIONS

--appdepsdk <SDK_PATH>

Path to custom AppDepSDK

-c, --configuration [debug|release]

Build configuration. Defaults to `debug`.

--ilcargs <args>

Custom arguments for the IL Compiler.

--ilcpath <ILC_PATH>

Path to a custom ilc.exe

--linklib <LIB_PATH>

Path to static lib to link

--logpath <LOG_PATH>

Enables logging and writes native compilation logs to the given path.

-m, --mode [cpp|ryujit|custom]

Code generation mode. Defaults to ryujit.

-o, --out directoryname

Output directory for the native executable.

-r, --reference

Path to a managed dll reference for the app.

-t, --temp-out

Specifies temporary directory for intermediate files.

-v, --verbose

Prints verbose logging information, to follow the flow of execution of the command.

SEE ALSO

dotnet-compile(1), dotnet(1), dotnet-restore(1)