From b956db678180de020a2722c5871b0a6b6e302d30 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 18 Dec 2019 21:33:26 +1000 Subject: [PATCH] Update README.md Add reference to netcore.csproj for example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8457ed3..eaef4e2 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ For a more complete example of each project see the main `CefSharp` repository. ## .NET Core support As of version `75.1.142`, the CefSharp NuGet packages can be used with .NET Core 3.0 projects (as shown by the examples). However, the current versions have some limitations that you should be aware of: - The target machine still needs to have .NET Framework 4.5.2 or higher installed, as the `CefSharp.BrowserSubprocess.exe` is still used. -- The project file needs to update the references of `CefSharp.WinForms`/`CefSharp.WPF`/`CefSharp.OffScreen`, as well as `CefSharp.Core` and `CefSharp` to use `true`, as otherwise the CoreCLR would not load these libraries as they would not be specified in the `.deps.json` file. +- The project file needs to update the references of `CefSharp.WinForms`/`CefSharp.WPF`/`CefSharp.OffScreen`, as well as `CefSharp.Core` and `CefSharp` to use `true`, as otherwise the CoreCLR would not load these libraries as they would not be specified in the `.deps.json` file. See the netcore.csproj for an example. - When publishing a self-contained app using a runtime identifier `win-x64` or `win-x86`, you need to set the `Platform` property to `x64` or `x86`; as otherwise it would be `AnyCPU` and the check in the `.targets` file of the NuGet package would fail.
Example: - x86: `dotnet publish -f netcoreapp3.0 -r win-x86 -p:Platform=x86`