From 4761cccda5af0137290c825d4340bd7c361bb8a8 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 1 Oct 2016 06:12:07 -0700 Subject: Fix steps for console shell prompt (#1960) --- ...build-and-run-ilcompiler-in-console-shell-prompt.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Documentation') 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 e2a7ea2e7..b5eb939e8 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 @@ -16,7 +16,7 @@ This will result in the following: # Install latest CLI tools -* Download latest CLI tools from https://github.com/dotnet/cli/ and add them to the path +* Download latest CLI tools from https://github.com/dotnet/cli/ and add them to the path. The latest CLI tools include MSBuild support that the native compilation build integration depends on. * On windows ensure you are using the 'VS2015 x64 Native Tools Command Prompt' (This is distinct from the 'Developer Command Prompt for VS2015') @@ -27,6 +27,20 @@ You should now be able to use the `dotnet` commands of the CLI tools. * Ensure that you have done a repo build per the instructions above. * Create a new folder and switch into it. * Run `dotnet new --type MSBuild` on the command/shell prompt. This will add a project template. If you get an error, please ensure the [pre-requisites](prerequisites-for-building.md) are installed. +* Add the following `NuGet.Config` to your project. The CLI MSBuild support requires packages that have not been published to nuget.org yet. This step won't be necessary after official release. +``` + + + + + + + + + + + +``` * Run `dotnet restore`. This will download nuget packages required for compilation * Add the following line at the end of `.csproj` file that is part of your project. ``` @@ -40,7 +54,7 @@ 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 build3 /p:IlcPath=\bin\Product\Windows_NT.x64.Debug\packaging\publish1 + dotnet build3 /t:LinkNative /p:IlcPath=\bin\Product\Windows_NT.x64.Debug\packaging\publish1 ``` 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. -- cgit v1.2.3