From 5204cf4105d405998ea7f690223a40e407a8b60d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 8 Mar 2023 10:11:00 +1000 Subject: [PATCH] MSBuild - change from using $(SolutionDir) to $MSBuildThisFileDirectory - Changes to make CefSharp easier to use as a git submodule - BrowserSubProcess now builds for net6.0-windows for use with WinForms example --- CefSharp.AfterBuild.targets | 4 ++-- .../CefSharp.BrowserSubprocess.netcore.csproj | 3 ++- .../CefSharp.Core.Runtime.RefAssembly.netcore.csproj | 10 +++++----- CefSharp.Native.props | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 4 ++-- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 4 ++-- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 4 ++-- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 4 ++-- NuGet/PackageReference/CefSharp.Common.NETCore.nuspec | 6 +++--- 13 files changed, 25 insertions(+), 24 deletions(-) diff --git a/CefSharp.AfterBuild.targets b/CefSharp.AfterBuild.targets index ef5658bd9..f26ed0b38 100644 --- a/CefSharp.AfterBuild.targets +++ b/CefSharp.AfterBuild.targets @@ -10,9 +10,9 @@ - + - + diff --git a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj index 19c72e798..4b7017155 100644 --- a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj +++ b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj @@ -12,7 +12,8 @@ WinExe - netcoreapp3.1;net5.0 + netcoreapp3.1;net5.0-windows + $(TargetFrameworks);net6.0-windows CefSharp.BrowserSubprocess CefSharp.BrowserSubprocess false diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj index ae4256500..4f45f47d0 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj @@ -54,19 +54,19 @@ Haven't found a nice way to determine the Platform (resolves as AnyCPU) --> - + - $(SolutionDir)CefSharp.Core.Runtime\bin.netcore\x64\$(Configuration)\CefSharp.Core.Runtime.dll + $(MSBuildThisFileDirectory)..\CefSharp.Core.Runtime\bin.netcore\x64\$(Configuration)\CefSharp.Core.Runtime.dll - + - $(SolutionDir)CefSharp.Core.Runtime\bin.netcore\arm64\$(Configuration)\CefSharp.Core.Runtime.dll + $(MSBuildThisFileDirectory)..\CefSharp.Core.Runtime\bin.netcore\arm64\$(Configuration)\CefSharp.Core.Runtime.dll - $(SolutionDir)CefSharp.Core.Runtime\bin.netcore\win32\$(Configuration)\CefSharp.Core.Runtime.dll + $(MSBuildThisFileDirectory)..\CefSharp.Core.Runtime\bin.netcore\win32\$(Configuration)\CefSharp.Core.Runtime.dll diff --git a/CefSharp.Native.props b/CefSharp.Native.props index b6912821f..7f59ab51c 100644 --- a/CefSharp.Native.props +++ b/CefSharp.Native.props @@ -3,7 +3,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index ff13d04a3..0be6476b4 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -35,5 +35,5 @@ - + \ No newline at end of file diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 37d809de3..4594a4fa1 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -55,6 +55,6 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 32afdaa20..8b540ad6c 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -66,5 +66,5 @@ - + \ No newline at end of file diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 1f63a64a7..ef73d475d 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -59,6 +59,6 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index c0139eff0..f40538116 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -44,5 +44,5 @@ - + \ No newline at end of file diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 2003a31fc..efe8cf550 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -62,6 +62,6 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index ef4026f61..673f46758 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -43,5 +43,5 @@ - + \ No newline at end of file diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 2231edd9a..153ca7901 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -55,6 +55,6 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec b/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec index 7dd52925c..b8e5a6dbc 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec @@ -81,8 +81,8 @@ - - - + + + \ No newline at end of file