|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | | - <PropertyGroup> |
4 | | - <_CefSharpBrowserSubProcessRuntimeConfig>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\runtimes\$(RuntimeIdentifier)\native\CefSharp.BrowserSubprocess.runtimeconfig.json'))</_CefSharpBrowserSubProcessRuntimeConfig> |
5 | | - <_CefSharpBrowserSubProcessExe>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\runtimes\$(RuntimeIdentifier)\native\CefSharp.BrowserSubprocess.exe'))</_CefSharpBrowserSubProcessExe> |
6 | | - <_CefSharpBrowserSubProcessDll>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\runtimes\$(RuntimeIdentifier)\native\CefSharp.BrowserSubprocess.dll'))</_CefSharpBrowserSubProcessDll> |
7 | | - </PropertyGroup> |
| 3 | + <ItemGroup> |
| 4 | + <_CefSharpBrowserSubProcessFiles Include="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\runtimes\$(RuntimeIdentifier)\native\CefSharp.BrowserSubprocess.runtimeconfig.json'))"/> |
| 5 | + <_CefSharpBrowserSubProcessFiles Include="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\runtimes\$(RuntimeIdentifier)\native\CefSharp.BrowserSubprocess.exe'))" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '5.0' AND '$(PublishSingleFile)' == 'true' AND '$(SelfContained)' == 'true'"/> |
| 6 | + <_CefSharpBrowserSubProcessFiles Include="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\runtimes\$(RuntimeIdentifier)\native\CefSharp.BrowserSubprocess.dll'))" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '5.0' AND '$(PublishSingleFile)' == 'true' AND '$(SelfContained)' == 'true'"/> |
| 7 | + </ItemGroup> |
8 | 8 |
|
9 | 9 | <!-- |
10 | 10 | For SelfContained and PublishSingleFile we remove the CefSharp.BrowserSubprocess.runtimeconfig.json file so |
11 | | - the BrowserSubprocess runs using the packages .net runtime |
| 11 | + the BrowserSubprocess runs using the packaged .net runtime |
12 | 12 | Issue https://github.com/cefsharp/CefSharp/issues/3407 |
13 | 13 | --> |
14 | 14 | <Target Name="CefSharpExcludeBrowserSubprocessRuntimeConfigAfterResolveAssemblyReferences" AfterTargets="ResolveAssemblyReferences" Condition="'$(RuntimeIdentifier)' != '' AND '$(SelfContained)' == 'true'"> |
15 | 15 | <ItemGroup> |
16 | | - <ReferenceCopyLocalPaths Remove="$(_CefSharpBrowserSubProcessRuntimeConfig)" /> |
| 16 | + <ReferenceCopyLocalPaths Remove="@(_CefSharpBrowserSubProcessFiles)" /> |
17 | 17 | </ItemGroup> |
18 | 18 | </Target> |
19 | 19 |
|
20 | 20 | <Target Name="CefSharpExcludeBrowserSubprocessRuntimeConfigAfterComputeFilesToPublish" AfterTargets="ComputeFilesToPublish" Condition="'$(RuntimeIdentifier)' != '' AND '$(SelfContained)' == 'true'"> |
21 | 21 | <ItemGroup> |
22 | | - <ResolvedFileToPublish Remove="$(_CefSharpBrowserSubProcessRuntimeConfig)" /> |
| 22 | + <ResolvedFileToPublish Remove="@(_CefSharpBrowserSubProcessFiles)" /> |
23 | 23 | </ItemGroup> |
24 | 24 | </Target> |
25 | 25 |
|
26 | 26 | <!-- |
27 | | - For SelfContained and SingleFile under .Net 5 we don't include a default BrowserSubprocess |
| 27 | + For SelfContained and SingleFile under .Net 5 we don't include a default BrowserSubprocess files |
28 | 28 | SelfHosting of the BrowserSubprocess is required |
29 | 29 | Issue https://github.com/cefsharp/CefSharp/issues/3407 |
30 | 30 | --> |
31 | | - <Target Name="CefSharpExcludeBrowserSubprocessRuntimeConfigBeforeComputeFilesToBundle" BeforeTargets="_ComputeFilesToBundle" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '5.0' AND '$(RuntimeIdentifier)' != '' AND '$(SelfContained)' == 'true'"> |
| 31 | + <Target Name="CefSharpExcludeBrowserSubprocessRuntimeConfigBeforeComputeFilesToBundle" BeforeTargets="_ComputeFilesToBundle" Condition="'$(RuntimeIdentifier)' != '' AND '$(SelfContained)' == 'true'"> |
32 | 32 | <ItemGroup> |
33 | | - <ResolvedFileToPublish Remove="$(_CefSharpBrowserSubProcessRuntimeConfig)" /> |
34 | | - <ResolvedFileToPublish Remove="$(_CefSharpBrowserSubProcessExe)" /> |
35 | | - <ResolvedFileToPublish Remove="$(_CefSharpBrowserSubProcessDll)" /> |
| 33 | + <ResolvedFileToPublish Remove="@(_CefSharpBrowserSubProcessFiles)" /> |
36 | 34 | </ItemGroup> |
37 | 35 | </Target> |
38 | 36 |
|
|
41 | 39 | --> |
42 | 40 | <Target Name="CefSharpExcludeBrowserSubprocessRuntimeConfigBeforeGenerateDependencyFile" BeforeTargets="GenerateBuildDependencyFile;GeneratePublishDependencyFile" Condition="'$(RuntimeIdentifier)' != '' AND '$(SelfContained)' == 'true'"> |
43 | 41 | <ItemGroup> |
44 | | - <NativeCopyLocalItems Remove="$(_CefSharpBrowserSubProcessRuntimeConfig)" /> |
| 42 | + <NativeCopyLocalItems Remove="@(_CefSharpBrowserSubProcessFiles)" /> |
45 | 43 | </ItemGroup> |
46 | 44 | </Target> |
47 | 45 |
|
|
65 | 63 | <Message Importance="high" Text="SelfContained = $(SelfContained)" /> |
66 | 64 | <Message Importance="high" Text="PublishSingleFile = $(PublishSingleFile)" /> |
67 | 65 | <Message Importance="high" Text="OutDir = $(OutDir)" /> |
| 66 | + <Message Importance="high" Text="_CefSharpBrowserSubProcessFiles = @(_CefSharpBrowserSubProcessFiles)" /> |
| 67 | + <Message Importance="high" Text="_TargetFrameworkVersionWithoutV = $(_TargetFrameworkVersionWithoutV)" /> |
68 | 68 | </Target> |
69 | 69 |
|
70 | 70 | <Choose> |
|
0 commit comments