-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
404 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the runtime section if missing. --> | ||
<runtime xdt:Transform="InsertIfMissing"/> | ||
|
||
<runtime> | ||
<!-- Add the assemblyBinding section if missing. --> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing"/> | ||
</runtime> | ||
|
||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the dependentAssembly section for CefSharp.Core if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp.Core')"> | ||
<assemblyIdentity name="CefSharp.Core" processorArchitecture="amd64" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp.Core. --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp.Core')"> | ||
<!-- Add the codebase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase version="83.4.3.0" href="x64/CefSharp.Core.dll" xdt:Transform="Replace"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add the dependentAssembly section for CefSharp if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp')"> | ||
<assemblyIdentity name="CefSharp" processorArchitecture="amd64" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp. --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp')"> | ||
<!-- Add the codeBase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase xdt:Transform="Replace" version="83.4.3.0" href="x64/CefSharp.dll"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add the dependentAssembly section for CefSharp.BrowserSubprocess.Core if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp.BrowserSubprocess.Core')"> | ||
<assemblyIdentity name="CefSharp.BrowserSubprocess.Core" processorArchitecture="amd64" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp.BrowserSubprocess.Core --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp.BrowserSubprocess.Core')"> | ||
<!-- Add the codeBase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase xdt:Transform="Replace" version="83.4.3.0" href="x64/CefSharp.BrowserSubprocess.Core.dll"/> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the runtime section if missing. --> | ||
<runtime xdt:Transform="InsertIfMissing"/> | ||
|
||
<runtime> | ||
<!-- Add the assemblyBinding section if missing. --> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing"/> | ||
</runtime> | ||
|
||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the dependentAssembly section for CefSharp.Core if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp.Core')"> | ||
<assemblyIdentity name="CefSharp.Core" processorArchitecture="x86" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp.Core. --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp.Core')"> | ||
<!-- Add the codebase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase version="83.4.3.0" href="x86/CefSharp.Core.dll" xdt:Transform="Replace"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add the dependentAssembly section for CefSharp if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp')"> | ||
<assemblyIdentity name="CefSharp" processorArchitecture="x86" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp. --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp')"> | ||
<!-- Add the codeBase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase xdt:Transform="Replace" version="83.4.3.0" href="x86/CefSharp.dll"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add the dependentAssembly section for CefSharp.BrowserSubprocess.Core if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp.BrowserSubprocess.Core')"> | ||
<assemblyIdentity name="CefSharp.BrowserSubprocess.Core" processorArchitecture="x86" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp.BrowserSubprocess.Core --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp.BrowserSubprocess.Core')"> | ||
<!-- Add the codeBase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase xdt:Transform="Replace" version="83.4.3.0" href="x86/CefSharp.BrowserSubprocess.Core.dll"/> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="PlatformCheck" BeforeTargets="ResolveAssemblyReferences" Condition="(('$(Platform)' != 'x86') AND ('$(Platform)' != 'x64') AND ('$(Platform)' != 'Win32') AND '$(CefSharpAnyCpuSupport)' != 'true')"> | ||
<Error Text="$(MSBuildThisFileName) is unable to proceeed as your current Platform is '$(Platform)'. To target AnyCPU please read https://github.com/cefsharp/CefSharp/issues/1714. Alternatively change your Platform to x86 or x64 and the relevant files will be copied automatically. For details on changing your projects Platform see https://docs.microsoft.com/en-gb/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2017" HelpKeyword="CefSharpSolutionPlatformCheck" /> | ||
</Target> | ||
|
||
<Target Name="FrameworkVersionCheck" BeforeTargets="ResolveAssemblyReferences" Condition="(('$(TargetFrameworkVersion)' == 'v4.5.1') OR ('$(TargetFrameworkVersion)' == 'v4.5') OR ('$(TargetFrameworkVersion)' == 'v4.0'))"> | ||
<Error Text="CefSharp requires .Net 4.5.2 or higher" /> | ||
</Target> | ||
|
||
<PropertyGroup> | ||
<CefSharpTargetDir Condition=" '$(CefSharpTargetDir)' == '' ">.</CefSharpTargetDir> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
These item groups should be in the .props file, unfortunately Nuget 2.8.x doesn't gurantee the | ||
correct ordering .props imports, which we require as this depends on the cef.redist packages | ||
exporting an ItemGroup | ||
--> | ||
<Choose> | ||
<When Condition="('$(Platform)' == 'AnyCPU') OR ('$(Platform)' == 'x86') OR ('$(Platform)' == 'Win32')"> | ||
<ItemGroup> | ||
<None Include="@(CefRedist32)"> | ||
<Link>x86\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include="@(CefSharpCommonBinaries32)"> | ||
<Link>x86\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
</When> | ||
</Choose> | ||
|
||
<ItemGroup Condition="('$(Platform)' == 'x86') OR ('$(Platform)' == 'Win32')"> | ||
<None Include="@(CefRedist32)"> | ||
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include="@(CefSharpCommonBinaries32)"> | ||
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(Platform)' == 'x64'"> | ||
<None Include="@(CefRedist64)"> | ||
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include="@(CefSharpCommonBinaries64)"> | ||
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(Platform)' == 'AnyCPU'"> | ||
<None Include="@(CefRedist32)"> | ||
<Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include="@(CefRedist64)"> | ||
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include="@(CefSharpCommonBinaries32)"> | ||
<Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include="@(CefSharpCommonBinaries64)"> | ||
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
<Choose> | ||
<When Condition="('$(Platform)' == 'AnyCPU') OR ('$(Platform)' == 'x64')"> | ||
<ItemGroup> | ||
<None Include="@(CefRedist64)"> | ||
<Link>x64\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include="@(CefSharpCommonBinaries64)"> | ||
<Link>x64\%(RecursiveDir)%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PublishState>Include</PublishState> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
</When> | ||
</Choose> | ||
|
||
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll" /> | ||
<Target Name="CefSharpCommon_TransformX86Config" Condition="('$(Platform)' == 'AnyCPU') OR ('$(Platform)' == 'x86') OR ('$(Platform)' == 'Win32')" AfterTargets="_CopyAppConfigFile"> | ||
<TransformXml Source="@(AppConfigWithTargetPath->'$(OutDir)%(TargetPath)')" Transform="$(MSBuildThisFileDirectory)app.config.x86.transform" Destination="@(AppConfigWithTargetPath->'$(OutDir)%(TargetPath)')"/> | ||
</Target> | ||
<Target Name="CefSharpCommon_TransformX64Config" Condition="('$(Platform)' == 'AnyCPU') OR ('$(Platform)' == 'x64')" AfterTargets="_CopyAppConfigFile"> | ||
<TransformXml Source="@(AppConfigWithTargetPath->'$(OutDir)%(TargetPath)')" Transform="$(MSBuildThisFileDirectory)app.config.x64.transform" Destination="@(AppConfigWithTargetPath->'$(OutDir)%(TargetPath)')"/> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the runtime section if missing. --> | ||
<runtime xdt:Transform="InsertIfMissing"/> | ||
|
||
<runtime> | ||
<!-- Add the assemblyBinding section if missing. --> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing"/> | ||
</runtime> | ||
|
||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the dependentAssembly section for CefSharp.OffScreen if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp.OffScreen')"> | ||
<assemblyIdentity name="CefSharp.OffScreen" processorArchitecture="amd64" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp.OffScreen. --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='amd64' and asmv1:assemblyIdentity/@name='CefSharp.OffScreen')"> | ||
<!-- Add the codeBase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase xdt:Transform="Replace" version="83.4.3.0" href="x64/CefSharp.OffScreen.dll"/> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the runtime section if missing. --> | ||
<runtime xdt:Transform="InsertIfMissing"/> | ||
|
||
<runtime> | ||
<!-- Add the assemblyBinding section if missing. --> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing"/> | ||
</runtime> | ||
|
||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- Add the dependentAssembly section for CefSharp.OffScreen if missing. --> | ||
<dependentAssembly xdt:Transform="InsertIfMissing" xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp.OffScreen')"> | ||
<assemblyIdentity name="CefSharp.OffScreen" processorArchitecture="x86" publicKeyToken="40c4b6fc221f4138" culture="neutral"/> | ||
</dependentAssembly> | ||
|
||
<!-- Add or update the codeBase information for CefSharp.OffScreen. --> | ||
<dependentAssembly xdt:Locator="Condition(asmv1:assemblyIdentity/@processorArchitecture='x86' and asmv1:assemblyIdentity/@name='CefSharp.OffScreen')"> | ||
<!-- Add the codeBase section if missing. --> | ||
<codeBase xdt:Transform="InsertIfMissing"/> | ||
<!-- Ensure the codeBase version and href are set to the correct values. --> | ||
<codeBase xdt:Transform="Replace" version="83.4.3.0" href="x86/CefSharp.OffScreen.dll"/> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.