2019-09-10 16:20:34 +08:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<OutputType>WinExe</OutputType>
|
|
|
|
|
<TargetFramework>netcoreapp3.0</TargetFramework>
|
|
|
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
|
|
|
<RootNamespace>CefSharp.MinimalExample.WinForms</RootNamespace>
|
|
|
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
|
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
|
|
|
<Platforms>x86;x64</Platforms>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2020-07-02 09:08:43 +08:00
|
|
|
|
<PackageReference Include="CefSharp.WinForms" Version="83.4.20" />
|
2019-09-10 16:20:34 +08:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<!-- TODO: These updates are currently required because CefSharp.WinForms specifies
|
|
|
|
|
<Private>false</Private>, which means these libraries will not be specified in
|
|
|
|
|
the .deps.json file, and so the CoreCLR wouldn't load these. -->
|
|
|
|
|
<Reference Update="CefSharp">
|
|
|
|
|
<Private>true</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
<Reference Update="CefSharp.Core">
|
|
|
|
|
<Private>true</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
<Reference Update="CefSharp.WinForms">
|
|
|
|
|
<Private>true</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
</ItemGroup>
|
2020-02-10 10:20:12 +08:00
|
|
|
|
|
|
|
|
|
<!-- Include CefSharp.BrowserSubprocess.Core so we can selfhost the BrowserSubProcess using our exe -->
|
|
|
|
|
<Choose>
|
|
|
|
|
<When Condition="'$(PlatformTarget)' == 'x64'">
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Reference Include="CefSharp.BrowserSubprocess.Core">
|
|
|
|
|
<HintPath>$(CefSharpBrowserProcessCore64)</HintPath>
|
|
|
|
|
<Private>true</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</When>
|
|
|
|
|
<!-- x86, Win32 and AnyCPU -->
|
|
|
|
|
<Otherwise>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Reference Include="CefSharp.BrowserSubprocess.Core">
|
|
|
|
|
<HintPath>$(CefSharpBrowserProcessCore32)</HintPath>
|
|
|
|
|
<Private>true</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Otherwise>
|
|
|
|
|
</Choose>
|
2019-09-10 16:20:34 +08:00
|
|
|
|
</Project>
|