-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Net Core - Support for compiling with .Net Core 3.1
- Make Wpf/WinForms/OffScreen projects target AnyCPU Only the VC++ projects are platform specific now. - Remove BrowserSubProcess project reference Not needed as we now have a standalone exe - Add OffScreen example - Add WPF Example project - Fix some compile errors for main solution - Add BrowserSubProcess executable - JavascriptObjectRepository remove isAsync param Rather than throw exception remove the option - BrowserSubprocess Exclude the WCF specific code from the netCore project - Add some ifdef/ifndef to exclude the WCF specific implementation - Move WCF implementation into separate namespace
- Loading branch information
Showing
42 changed files
with
420 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?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> | ||
|
||
<!-- Implicit top import --> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<RootNamespace>CefSharp.BrowserSubprocess</RootNamespace> | ||
<AssemblyName>CefSharp.BrowserSubprocess</AssemblyName> | ||
<DocumentationFile>$(BaseOutputPath)$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\CefSharp.snk</AssemblyOriginatorKeyFile> | ||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<StartupObject>CefSharp.BrowserSubprocess.Program</StartupObject> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<WarningLevel>2</WarningLevel> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="bin\**" /> | ||
<Compile Remove="obj\**" /> | ||
<EmbeddedResource Remove="bin\**" /> | ||
<EmbeddedResource Remove="obj\**" /> | ||
<None Remove="bin\**" /> | ||
<None Remove="obj\**" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Remove="Program.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\CefSharp.BrowserSubprocess.Core\CefSharp.BrowserSubprocess.Core.netcore.vcxproj" /> | ||
<ProjectReference Include="..\CefSharp\CefSharp.netcore.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- Implicit bottom import --> | ||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright © 2020 The CefSharp Authors. All rights reserved. | ||
// | ||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | ||
|
||
using System.Diagnostics; | ||
using CefSharp.RenderProcess; | ||
|
||
namespace CefSharp.BrowserSubprocess | ||
{ | ||
/// <summary> | ||
/// When implementing your own BrowserSubprocess | ||
/// - For .Net Core use <see cref="BrowserSubprocessExecutable"/> (No WCF Support) | ||
/// - Include an app.manifest with the dpi/compatability sections, this is required (this project contains the relevant). | ||
/// - If you are targeting x86/Win32 then you should set /LargeAddressAware (https://docs.microsoft.com/en-us/cpp/build/reference/largeaddressaware?view=vs-2017) | ||
/// </summary> | ||
public class Program | ||
{ | ||
public static int Main(string[] args) | ||
{ | ||
Debug.WriteLine("BrowserSubprocess starting up with command line: " + string.Join("\n", args)); | ||
|
||
SubProcess.EnableHighDPISupport(); | ||
|
||
//Add your own custom implementation of IRenderProcessHandler here | ||
IRenderProcessHandler handler = null; | ||
|
||
//The BrowserSubprocessExecutable provides BrowserSubProcess functionality | ||
//specific to CefSharp there is no WCF support used for the sync JSB feature. | ||
var browserProcessExe = new BrowserSubprocessExecutable(); | ||
var result = browserProcessExe.Main(args, handler); | ||
|
||
Debug.WriteLine("BrowserSubprocess shutting down."); | ||
|
||
return result; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"profiles": { | ||
"CefSharp.BrowserSubprocess.netcore": { | ||
"commandName": "Project", | ||
"nativeDebugging": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.