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:
-rw-r--r--samples/WebApi/README.md2
-rw-r--r--src/BuildIntegration/Microsoft.NETCore.Native.Unix.props6
2 files changed, 8 insertions, 0 deletions
diff --git a/samples/WebApi/README.md b/samples/WebApi/README.md
index 4ca72f80d..2567db9bd 100644
--- a/samples/WebApi/README.md
+++ b/samples/WebApi/README.md
@@ -136,6 +136,8 @@ Once completed, you can find the native executable in the root folder of your pr
## Try it out!
+If you are running macOS, make sure you have [libuv](https://github.com/libuv/libuv) installed, as ASP.NET is built on top of libuv. You can use [homebrew](https://brew.sh/) to get it (`brew install libuv`).
+
Navigate to `/bin/x64/<Configuration>/netcoreapp2.0/publish/` in your project folder and run the produced executable. It should display "Now listening on: http://localhost:XXXX" with XXXX being a port on your machine. Open your browser and navigate to that URL. You should see "Hello World!" displayed in your browser.
Feel free to modify the sample application and experiment. However, keep in mind some functionality might not yet be supported in CoreRT. Let us know on the [Issues page](https://github.com/dotnet/corert/issues/).
diff --git a/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props b/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
index 69539c5e1..309e4728f 100644
--- a/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
+++ b/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
@@ -63,6 +63,11 @@ See the LICENSE file in the project root for more information.
<AdditionalNativeLibrary Include="$(IlcPath)/framework/System.Security.Cryptography.Native.OpenSsl.a" Condition="'$(TargetOS)' != 'OSX'"/>
</ItemGroup>
+ <ItemGroup Condition="'$(TargetOS)' == 'OSX'">
+ <AdditionalNativeFramework Include="CoreFoundation" />
+ <AdditionalNativeFramework Include="Security" />
+ </ItemGroup>
+
<ItemGroup>
<LinkerArg Include="@(NativeLibrary)" />
<LinkerArg Include="@(AdditionalNativeLibrary)" />
@@ -79,6 +84,7 @@ See the LICENSE file in the project root for more information.
<LinkerArg Include="-licucore" Condition="'$(TargetOS)' == 'OSX'" />
<LinkerArg Include="-dynamiclib" Condition="'$(TargetOS)' == 'OSX' and '$(NativeLib)' == 'Shared'" />
<LinkerArg Include="-shared" Condition="'$(TargetOS)' != 'OSX' and '$(NativeLib)' == 'Shared'" />
+ <LinkerArg Include="@(AdditionalNativeFramework->'-framework %(Identity)')" Condition="'$(TargetOS)' == 'OSX'" />
</ItemGroup>
<Exec Command="command -v $(CppLinker)" IgnoreExitCode="true">