Skip to content

Commit

Permalink
Net Core - Fix CefSharpExcludeBrowserSubprocessRuntimeConfigAfterReso…
Browse files Browse the repository at this point in the history
…lveAssemblyReferences

Only when SelfContained is true, for SingleFile that's not self contained we'll need the runtimedeps.json file
  • Loading branch information
amaitland committed Feb 26, 2021
1 parent 983a57b commit 7c45907
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NuGet/PackageReference/CefSharp.Common.NETCore.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<!--
For SelfContained and PublishSingleFile we remove the CefSharp.BrowserSubprocess.runtimeconfig.json file so
the BrowserSubprocess runs using the packages .net runtime
Issue https://github.com/cefsharp/CefSharp/issues/3407
-->
<Target Name="CefSharpExcludeBrowserSubprocessRuntimeConfigAfterResolveAssemblyReferences" AfterTargets="ResolveAssemblyReferences" Condition="'$(RuntimeIdentifier)' != '' AND ('$(SelfContained)' == 'true' OR '$(PublishSingleFile)' == 'true')">
<Target Name="CefSharpExcludeBrowserSubprocessRuntimeConfigAfterResolveAssemblyReferences" AfterTargets="ResolveAssemblyReferences" Condition="'$(RuntimeIdentifier)' != '' AND '$(SelfContained)' == 'true'">
<PropertyGroup>
<_CefSharpBrowserSubProcessRuntimeConfig>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\runtimes\$(RuntimeIdentifier)\native\CefSharp.BrowserSubprocess.runtimeconfig.json'))</_CefSharpBrowserSubProcessRuntimeConfig>
</PropertyGroup>
Expand Down

0 comments on commit 7c45907

Please sign in to comment.