2020-08-05 15:55:03 +08:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<Project>
|
|
|
|
|
<!-- Note: We cannot use the recommended style of specifying <Project Sdk=...> because we need
|
|
|
|
|
to set BaseIntermediateOutputPath and BaseOutputPath before the SDK props are imported. -->
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<BaseIntermediateOutputPath>obj.netcore\</BaseIntermediateOutputPath>
|
|
|
|
|
<BaseOutputPath>bin.netcore\</BaseOutputPath>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.WindowsDesktop" />
|
|
|
|
|
|
2019-09-10 16:20:34 +08:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<OutputType>Exe</OutputType>
|
|
|
|
|
<TargetFramework>netcoreapp3.0</TargetFramework>
|
|
|
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
|
|
|
<RootNamespace>CefSharp.MinimalExample.OffScreen</RootNamespace>
|
|
|
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
|
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
|
|
|
<Platforms>x86;x64</Platforms>
|
|
|
|
|
</PropertyGroup>
|
2020-08-26 14:15:39 +08:00
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Compile Remove="bin\**" />
|
|
|
|
|
<Compile Remove="obj\**" />
|
|
|
|
|
<EmbeddedResource Remove="bin\**" />
|
|
|
|
|
<EmbeddedResource Remove="obj\**" />
|
|
|
|
|
<None Remove="bin\**" />
|
|
|
|
|
<None Remove="obj\**" />
|
|
|
|
|
</ItemGroup>
|
2019-09-10 16:20:34 +08:00
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2020-11-28 17:55:09 +08:00
|
|
|
|
<PackageReference Include="CefSharp.OffScreen" Version="86.0.241" />
|
2019-09-10 16:20:34 +08:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<!-- TODO: These updates are currently required because CefSharp.OffScreen 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.OffScreen">
|
|
|
|
|
<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>
|
2020-08-05 15:55:03 +08:00
|
|
|
|
|
|
|
|
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" />
|
2019-09-10 16:20:34 +08:00
|
|
|
|
</Project>
|