Skip to content

Commit e439cd0

Browse files
committed
Core - Build BrowserSubProcess for net6.0-windows
- This is only for local builds, we still only ship a .Net Core 3.1 exe (.Net 5.0 for arm64) - Potentially we should always use the netcoreapp3.1 exe to mimic what's happening when using the nuget packages That would require changes to the .targets file to copy the correct exe based on arch
1 parent 7bfcaef commit e439cd0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
<PropertyGroup>
1414
<OutputType>WinExe</OutputType>
15-
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
15+
<TargetFrameworks>netcoreapp3.1;net5.0-windows</TargetFrameworks>
16+
<TargetFrameworks Condition="'$(VisualStudioVersion)'=='17.0'">$(TargetFrameworks);net6.0-windows</TargetFrameworks>
1617
<RootNamespace>CefSharp.BrowserSubprocess</RootNamespace>
1718
<AssemblyName>CefSharp.BrowserSubprocess</AssemblyName>
1819
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>

NuGet/PackageReference/CefSharp.Common.NETCore.nuspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\x64\Release\netcoreapp3.1\CefSharp.BrowserSubprocess.runtimeconfig.json" target="runtimes\win-x64\native"/>
8282

8383
<!-- For arm64, we use the net5.0 version of CefSharp.BrowserSubprocess since .NET 5.0 officially supports creating Windows ARM64 apps -->
84-
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\arm64\Release\net5.0\CefSharp.BrowserSubprocess.dll" target="runtimes\win-arm64\native"/>
85-
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\arm64\Release\net5.0\CefSharp.BrowserSubprocess.exe" target="runtimes\win-arm64\native"/>
86-
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\arm64\Release\net5.0\CefSharp.BrowserSubprocess.runtimeconfig.json" target="runtimes\win-arm64\native"/>
84+
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\arm64\Release\net5.0-windows\CefSharp.BrowserSubprocess.dll" target="runtimes\win-arm64\native"/>
85+
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\arm64\Release\net5.0-windows\CefSharp.BrowserSubprocess.exe" target="runtimes\win-arm64\native"/>
86+
<file src="..\..\CefSharp.BrowserSubprocess\bin.netcore\arm64\Release\net5.0-windows\CefSharp.BrowserSubprocess.runtimeconfig.json" target="runtimes\win-arm64\native"/>
8787
</files>
8888
</package>

0 commit comments

Comments
 (0)