Net 5+ - Self Host the BrowserSubProcess for SelfContained builds
- Use the application exe instead of CefSharp.BrowserSubprocess.exe - M103 will add a new CefSharpExcludeSubProcessExe which will exclude the exe from builds
This commit is contained in:
parent
8f3bba483c
commit
1d99718498
@ -39,6 +39,15 @@
|
||||
<StartupObject>CefSharp.MinimalExample.WinForms.ProgramPublishSingleFile</StartupObject>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
For SelfContained we'll self host the BrowserSubprocess (use the applications own exe)
|
||||
Instead of the provdied CefSharp.BrowserSubprocess.exe
|
||||
-->
|
||||
<PropertyGroup Condition="('$(TargetFramework)' == 'net5.0-windows' OR '$(TargetFramework)' == 'net6.0-windows') AND '$(SelfContained)' == 'true'">
|
||||
<StartupObject>CefSharp.MinimalExample.WinForms.ProgramPublishSingleFile</StartupObject>
|
||||
<CefSharpExcludeSubProcessExe>true</CefSharpExcludeSubProcessExe>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(PlatformTarget)' == 'x86'">
|
||||
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == ''">win-x86</RuntimeIdentifier>
|
||||
<SelfContained Condition="'$(SelfContained)' == ''">false</SelfContained>
|
||||
|
@ -49,6 +49,15 @@
|
||||
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||
<StartupObject>CefSharp.MinimalExample.Wpf.ProgramPublishSingleFile</StartupObject>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
For SelfContained we'll self host the BrowserSubprocess (use the applications own exe)
|
||||
Instead of the provdied CefSharp.BrowserSubprocess.exe
|
||||
-->
|
||||
<PropertyGroup Condition="('$(TargetFramework)' == 'net5.0-windows' OR '$(TargetFramework)' == 'net6.0-windows') AND '$(SelfContained)' == 'true'">
|
||||
<StartupObject>CefSharp.MinimalExample.Wpf.ProgramPublishSingleFile</StartupObject>
|
||||
<CefSharpExcludeSubProcessExe>true</CefSharpExcludeSubProcessExe>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="bin\**" />
|
||||
|
Loading…
Reference in New Issue
Block a user