diff options
author | Adeel Mujahid <adeelbm@outlook.com> | 2018-02-08 15:00:16 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-02-08 15:00:16 +0300 |
commit | a1aaffd5d98b89ece62924ccfa8eb3f1b9c7304a (patch) | |
tree | dc14468692a7f82c6246b3837cea7f7de3ac7783 /samples/WebApi | |
parent | 099a02aad7b358a72f9e92d01a05dc1ae26c8adc (diff) |
Pass /LIBPATH to linker (#5359)
* Pass /LIBPATH to linker
Package [Microsoft.DotNet.ILCompiler v1.0.0-alpha-26207-01](https://dotnet.myget.org/feed/dotnet-core/package/nuget/Microsoft.DotNet.ILCompiler/1.0.0-alpha-26207-01)
was failing to compile WebAPI app when using non-developer command
prompt on Windows, because Kernel32.lib and friends weren't get located.
Capturing those from vsvarsall environment in `findvsvarsall.bat` script
and passing it to link.exe fixes the error and compiles WebAPI app
successfully.
* Update docs to reflect the behavior
Diffstat (limited to 'samples/WebApi')
-rw-r--r-- | samples/WebApi/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/WebApi/README.md b/samples/WebApi/README.md index 2567db9bd..5c5ca2ed0 100644 --- a/samples/WebApi/README.md +++ b/samples/WebApi/README.md @@ -120,7 +120,7 @@ public class ValuesController ## Restore and Publish your app -Once the package has been successfully added it's time to compile and publish your app! If you're using Windows, make sure you're using `x64 Native Tools Command Prompt for VS 2017` instead of the standard Windows command prompt. In the shell/command prompt window, run the following command: +Once the package has been successfully added it's time to compile and publish your app! In the shell/command prompt window, run the following command: ```bash > dotnet publish -r <RID> -c <Configuration> |