898eb755c6
Eliminates the requirements for .Net 4.5.2, the application exe is used as the browsersubprocess. Additional manual import of CefSharp.BrowserSubProcess.Core is required see csproj file for example TODO: OffScreen version is crashing on exit so it's been updated, it just isn't using itself as the BrowserSubProcess
52 lines
1.7 KiB
XML
52 lines
1.7 KiB
XML
<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>
|
|
<PackageReference Include="CefSharp.WinForms" Version="79.1.350" />
|
|
</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>
|
|
|
|
<!-- 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>
|
|
</Project>
|