Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndon Andonov <andon.andonov@microsoft.com>2017-11-08 11:18:45 +0300
committerMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2017-11-08 11:18:45 +0300
commit1e2dbfff5318e844b6290dfe9fd3fed8b693e115 (patch)
tree5f67c1d1cf87d98b98cc4ed6ff94de7ee5ec3c73 /Documentation
parentdc2af5298dff58f99b1245ce03489ede960ca07d (diff)
Support for dotnet publish (#4870)
Support for the dotnet publish command. Built on top of changes made by @nattress . NuGet packages that target .NETCore specifically can be published safely, but most others targeting the .NETFramework cannot.
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md b/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md
index baf53f154..fdbc04d84 100644
--- a/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md
+++ b/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md
@@ -60,10 +60,10 @@ This approach uses the same code-generator (RyuJIT), as [CoreCLR](https://github
From the shell/command prompt, issue the following commands, from the folder containing your project, to generate the native executable
```
- dotnet build /t:LinkNative
+ dotnet publish -r win-x64|linux-x64|osx-x64
```
-Native executable will be dropped in `./bin/[configuration]/native/` folder and will have the same name as the folder in which your source file is present.
+Native executable will be dropped in `./bin/x64/[configuration]/netcoreapp2.0/publish/` folder and will have the same name as the folder in which your source file is present.
## Using CPP Code Generator ##
@@ -72,11 +72,15 @@ This approach uses [transpiler](https://en.wikipedia.org/wiki/Source-to-source_c
From the shell/command prompt, issue the following commands to generate the native executable:
```
- dotnet build /t:LinkNative /p:NativeCodeGen=cpp
+ dotnet publish /p:NativeCodeGen=cpp -r win-x64|linux-x64|osx-x64
```
For CoreRT debug build on Windows, add an extra `/p:AdditionalCppCompilerFlags=/MTd` argument.
+## Disabling Native Compilation
+
+Native compilation can be disabled during publishing by adding an extra `/p:NativeCompilationDuringPublish=false` argument.
+
## Workarounds for build errors on Windows ##
If you are seeing errors such as: