Net Core - BrowserSubprocess compile as x86/x64 variants

Using an AnyCPU process wouldn't load when the browser process was x86
Basically x86 browser process couldn't use an x64 subprocess

Issue #3197
This commit is contained in:
Alex Maitland
2020-11-06 17:41:45 +10:00
parent 810560cfdd
commit 833ebe49a6
4 changed files with 20 additions and 21 deletions
@@ -15,16 +15,16 @@
<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>
<Platforms>x86;x64</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<WarningLevel>2</WarningLevel>
</PropertyGroup>
+3 -4
View File
@@ -164,11 +164,10 @@ namespace CefSharp.Example
if (DebuggingSubProcess)
{
#if NETCOREAPP
settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin.netcore\\Debug\\netcoreapp3.1\\CefSharp.BrowserSubprocess.exe");
#else
var architecture = Environment.Is64BitProcess ? "x64" : "x86";
#if NETCOREAPP
settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin.netcore\\" + architecture + "\\Debug\\netcoreapp3.1\\CefSharp.BrowserSubprocess.exe");
#else
settings.BrowserSubprocessPath = Path.GetFullPath("..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe");
#endif
}
+8 -8
View File
@@ -143,14 +143,14 @@ Global
{64E47346-0BB1-4DF7-B135-12D70E1F2F32}.Release|x64.Build.0 = Release|x64
{64E47346-0BB1-4DF7-B135-12D70E1F2F32}.Release|x86.ActiveCfg = Release|x86
{64E47346-0BB1-4DF7-B135-12D70E1F2F32}.Release|x86.Build.0 = Release|x86
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x64.ActiveCfg = Debug|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x64.Build.0 = Debug|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x86.ActiveCfg = Debug|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x86.Build.0 = Debug|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x64.ActiveCfg = Release|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x64.Build.0 = Release|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x86.ActiveCfg = Release|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x86.Build.0 = Release|Any CPU
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x64.ActiveCfg = Debug|x64
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x64.Build.0 = Debug|x64
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x86.ActiveCfg = Debug|x86
{FBFBD752-467C-444F-93E4-80D6242E8513}.Debug|x86.Build.0 = Debug|x86
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x64.ActiveCfg = Release|x64
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x64.Build.0 = Release|x64
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x86.ActiveCfg = Release|x86
{FBFBD752-467C-444F-93E4-80D6242E8513}.Release|x86.Build.0 = Release|x86
{E73A3B0C-457E-4065-BCE9-A10CAA8F4F2A}.Debug|x64.ActiveCfg = Debug|x64
{E73A3B0C-457E-4065-BCE9-A10CAA8F4F2A}.Debug|x64.Build.0 = Debug|x64
{E73A3B0C-457E-4065-BCE9-A10CAA8F4F2A}.Debug|x86.ActiveCfg = Debug|x86
@@ -45,13 +45,13 @@
<file src="..\..\CefSharp.BrowserSubprocess.Core\bin.netcore\x64\Release\CefSharp.BrowserSubprocess.Core.dll" target="runtimes\win-x64\lib\netcoreapp3.1"/>
<file src="..\..\CefSharp.BrowserSubprocess.Core\bin.netcore\x64\Release\CefSharp.BrowserSubprocess.Core.pdb" target="runtimes\win-x64\lib\netcoreapp3.1"/>
<!-- These are not actually native, including them in lib\netcoreapp3.1 doesn't copy the json files and since it's a runtime only dependency including them in native -->
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.dll" target="runtimes\win-x86\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.exe" target="runtimes\win-x86\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.runtimeconfig.json" target="runtimes\win-x86\native"/>
<!-- These are not actually native, including them in runtimes\win-x64\lib\netcoreapp3.1 doesn't copy the json files and since it's a runtime only dependency including them in native -->
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\x86\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.dll" target="runtimes\win-x86\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\x86\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.exe" target="runtimes\win-x86\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\x86\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.runtimeconfig.json" target="runtimes\win-x86\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.dll" target="runtimes\win-x64\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.exe" target="runtimes\win-x64\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.runtimeconfig.json" target="runtimes\win-x64\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\x64\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.dll" target="runtimes\win-x64\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\x64\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.exe" target="runtimes\win-x64\native"/>
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\x64\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.runtimeconfig.json" target="runtimes\win-x64\native"/>
</files>
</package>