mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Nuget - Additional PackageReference set of nupkg files
**WORK IN PROGRESS** Unfortunately the new chromiumembeddedframework.redist.win-x86/chromiumembeddedframework.redist.win-x64 packages aren't usable yet, the files are copied to the relevant natives folder .net core just doesn't load the dlls. I suspect if we were to p/invoke the dll then it would be loaded correctly, might need to raise this with .Net Core team. So for now just using the older cef.redist packages, which expose props that can be used in any other package. the new CefSharp.Common.win packages will copy the files using the .targets file as before, difference being PlatformTarget is used instead of Platform so we can detect the actual platform of the project not the solution. AnyCPU is not currently supported, x86/x64 only, Win32 might work, not tested though. Not clear that AnyCpu will be possible, more digging to do on that front. Issue #2795
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<CefSharpTargetDir Condition=" '$(CefSharpTargetDir)' == '' "></CefSharpTargetDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(PlatformTarget)' == 'x64'">
|
||||
<Content Include="@(CefRedist64)">
|
||||
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
<PublishState>Included</PublishState>
|
||||
</Content>
|
||||
<!-- <Content Include="@(CefSharpCommonBinaries64)"> -->
|
||||
<!-- <Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> -->
|
||||
<!-- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> -->
|
||||
<!-- <Visible>false</Visible> -->
|
||||
<!-- </Content> -->
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(PlatformTarget)' == 'AnyCPU'">
|
||||
<Content Include="@(CefRedist64)">
|
||||
<Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
<PublishState>Included</PublishState>
|
||||
</Content>
|
||||
|
||||
<!-- <Content Include="@(CefSharpCommonBinaries64)"> -->
|
||||
<!-- <Link>$(CefSharpTargetDir)\x64\%(RecursiveDir)%(FileName)%(Extension)</Link> -->
|
||||
<!-- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> -->
|
||||
<!-- <Visible>false</Visible> -->
|
||||
<!-- </Content> -->
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<CefSharpTargetDir Condition=" '$(CefSharpTargetDir)' == '' "></CefSharpTargetDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="('$(PlatformTarget)' == 'x86') OR ('$(PlatformTarget)' == 'Win32')">
|
||||
<Content Include="@(CefRedist32)">
|
||||
<Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
<PublishState>Included</PublishState>
|
||||
</Content>
|
||||
<!-- <None Include="@(CefSharpCommonBinaries32)"> -->
|
||||
<!-- <Link>$(CefSharpTargetDir)\%(RecursiveDir)%(FileName)%(Extension)</Link> -->
|
||||
<!-- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> -->
|
||||
<!-- <Visible>false</Visible> -->
|
||||
<!-- </None> -->
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(PlatformTarget)' == 'AnyCPU'">
|
||||
<Content Include="@(CefRedist32)">
|
||||
<Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>false</Visible>
|
||||
<PublishState>Included</PublishState>
|
||||
</Content>
|
||||
<!-- <None Include="@(CefSharpCommonBinaries32)"> -->
|
||||
<!-- <Link>$(CefSharpTargetDir)\x86\%(RecursiveDir)%(FileName)%(Extension)</Link> -->
|
||||
<!-- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> -->
|
||||
<!-- <Visible>false</Visible> -->
|
||||
<!-- </None> -->
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>CefSharp.Common.win-$Platform$</id>
|
||||
<version>$version$</version>
|
||||
<authors>The CefSharp Authors</authors>
|
||||
<owners>The CefSharp Authors</owners>
|
||||
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
|
||||
<licenseUrl>https://raw.github.com/cefsharp/CefSharp/master/LICENSE</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>The CefSharp Chromium-based browser component ('Core' and common 'Element' components, needed by both WPF, WinForms and OffScreen implementations).</description>
|
||||
<tags>chrome browser chromium-embedded</tags>
|
||||
<copyright>Copyright © The CefSharp Authors</copyright>
|
||||
<dependencies>
|
||||
<group targetFramework=".NETFramework4.5.2">
|
||||
<dependency id="cef.redist.$Platform$" version="[$RedistVersion$]" />
|
||||
</group>
|
||||
<group targetFramework=".NETCoreApp3.0">
|
||||
<dependency id="cef.redist.$Platform$" version="[$RedistVersion$]" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<!-- PackageReference doesn't copy pdb files see https://github.com/dotnet/sdk/issues/1458#issuecomment-577286780 -->
|
||||
<!-- Common CefSharp stuff (shared between both WPF, Offscreen and WinForms) -->
|
||||
<!-- <file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.dll" target="runtimes\win-$Platform$\lib\netcoreapp3.0"/> -->
|
||||
<!-- <file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.xml" target="runtimes\win-$Platform$\lib\netcoreapp3.0"/> -->
|
||||
<!-- <file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.pdb" target="runtimes\win-$Platform$\lib\netcoreapp3.0"/> -->
|
||||
<!-- <file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.dll" target="runtimes\win-$Platform$\lib\net452"/> -->
|
||||
<!-- <file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.xml" target="runtimes\win-$Platform$\lib\net452"/> -->
|
||||
<!-- <file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.pdb" target="runtimes\win-$Platform$\lib\net452"/> -->
|
||||
|
||||
<file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.dll" target="lib\net452"/>
|
||||
<file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.pdb" target="lib\net452"/>
|
||||
<file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.dll" target="lib\netcoreapp3.0"/>
|
||||
<file src="..\..\CefSharp\bin\$Platform$\Release\CefSharp.pdb" target="lib\netcoreapp3.0"/>
|
||||
|
||||
<!-- PlatformNative is either Win32 or x64 -->
|
||||
<!-- <file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.dll" target="runtimes\win-$Platform$\lib\netcoreapp3.0"/> -->
|
||||
<!-- <file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.xml" target="runtimes\win-$Platform$\lib\netcoreapp3.0"/> -->
|
||||
<!-- <file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.pdb" target="runtimes\win-$Platform$\lib\netcoreapp3.0"/> -->
|
||||
<!-- <file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.dll" target="runtimes\win-$Platform$\lib\net452"/> -->
|
||||
<!-- <file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.xml" target="runtimes\win-$Platform$\lib\net452"/> -->
|
||||
<!-- <file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.pdb" target="runtimes\win-$Platform$\lib\net452"/> -->
|
||||
|
||||
<!-- <file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.dll" target="runtimes\win-$Platform$\native"/> -->
|
||||
|
||||
<file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.dll" target="lib\netcoreapp3.0"/>
|
||||
<file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.pdb" target="lib\netcoreapp3.0"/>
|
||||
<file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.dll" target="lib\net452"/>
|
||||
<file src="..\..\CefSharp.Core\bin\$PlatformNative$\Release\CefSharp.Core.pdb" target="lib\net452"/>
|
||||
|
||||
<file src="..\..\CefSharp.BrowserSubprocess\bin\$Platform$\Release\CefSharp.BrowserSubprocess.Core.dll" target="lib\netcoreapp3.0"/>
|
||||
<file src="..\..\CefSharp.BrowserSubprocess\bin\$Platform$\Release\CefSharp.BrowserSubprocess.Core.pdb" target="lib\netcoreapp3.0"/>
|
||||
|
||||
<file src="..\..\CefSharp.BrowserSubprocess\bin\$Platform$\Release\CefSharp.BrowserSubprocess.Core.dll" target="runtimes\win-$Platform$\lib\net452"/>
|
||||
<file src="..\..\CefSharp.BrowserSubprocess\bin\$Platform$\Release\CefSharp.BrowserSubprocess.Core.pdb" target="runtimes\win-$Platform$\lib\net452"/>
|
||||
<file src="..\..\CefSharp.BrowserSubprocess\bin\$Platform$\Release\CefSharp.BrowserSubprocess.exe" target="runtimes\win-$Platform$\lib\net452"/>
|
||||
<file src="..\..\CefSharp.BrowserSubprocess\bin\$Platform$\Release\CefSharp.BrowserSubprocess.pdb" target="runtimes\win-$Platform$\lib\net452"/>
|
||||
|
||||
<file src="CefSharp.Common.win-$Platform$.targets" target="build" />
|
||||
</files>
|
||||
</package>
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>CefSharp.OffScreen.win-$Platform$</id>
|
||||
<version>$version$</version>
|
||||
<authors>The CefSharp Authors</authors>
|
||||
<owners>The CefSharp Authors</owners>
|
||||
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
|
||||
<licenseUrl>https://raw.github.com/cefsharp/CefSharp/master/LICENSE</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>The CefSharp Chromium-based browser component (OffScreen control).</description>
|
||||
<tags>osr chrome browser chromium-embedded cefsharp</tags>
|
||||
<copyright>Copyright © The CefSharp Authors</copyright>
|
||||
<dependencies>
|
||||
<group targetFramework=".NETFramework4.5.2">
|
||||
<dependency id="CefSharp.Common.win-$Platform$" version="[$version$]" />
|
||||
</group>
|
||||
<group targetFramework=".NETCoreApp3.0">
|
||||
<dependency id="CefSharp.Common.win-$Platform$" version="[$version$]" />
|
||||
</group>
|
||||
</dependencies>
|
||||
<releaseNotes>
|
||||
<![CDATA[
|
||||
See https://github.com/cefsharp/CefSharp/releases/tag/v$version$ for release notes including Known Issues, Breaking Changes, Bugs Fixed, new features.
|
||||
Important you read the release notes to see what's changed in this version.
|
||||
]]>
|
||||
</releaseNotes>
|
||||
</metadata>
|
||||
<files>
|
||||
<!-- pdb and xml files not copied see https://github.com/dotnet/sdk/issues/1458 -->
|
||||
<file src="..\..\CefSharp.OffScreen\bin\$Platform$\Release\CefSharp.OffScreen.dll" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.OffScreen\bin\$Platform$\Release\CefSharp.OffScreen.pdb" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.OffScreen\bin\$Platform$\Release\CefSharp.OffScreen.xml" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.OffScreen\bin\$Platform$\Release\CefSharp.OffScreen.dll" target="lib\net452" />
|
||||
<file src="..\..\CefSharp.OffScreen\bin\$Platform$\Release\CefSharp.OffScreen.pdb" target="lib\net452" />
|
||||
<file src="..\..\CefSharp.OffScreen\bin\$Platform$\Release\CefSharp.OffScreen.xml" target="lib\net452" />
|
||||
|
||||
<file src="..\Readme.txt" target="" />
|
||||
</files>
|
||||
</package>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>CefSharp.WinForms.win-$Platform$</id>
|
||||
<version>$version$</version>
|
||||
<authors>The CefSharp Authors</authors>
|
||||
<owners>The CefSharp Authors</owners>
|
||||
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
|
||||
<licenseUrl>https://raw.github.com/cefsharp/CefSharp/master/LICENSE</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>The CefSharp Chromium-based browser component (WinForms control).</description>
|
||||
<tags>winforms chrome browser chromium-embedded cefsharp</tags>
|
||||
<copyright>Copyright © The CefSharp Authors</copyright>
|
||||
<dependencies>
|
||||
<group targetFramework=".NETFramework4.5.2">
|
||||
<dependency id="CefSharp.Common.win-$Platform$" version="[$version$]" />
|
||||
</group>
|
||||
<group targetFramework=".NETCoreApp3.0">
|
||||
<dependency id="CefSharp.Common.win-$Platform$" version="[$version$]" />
|
||||
</group>
|
||||
</dependencies>
|
||||
<releaseNotes>
|
||||
<![CDATA[
|
||||
See https://github.com/cefsharp/CefSharp/releases/tag/v$version$ for release notes including Known Issues, Breaking Changes, Bugs Fixed, new features.
|
||||
Important you read the release notes to see what's changed in this version.
|
||||
]]>
|
||||
</releaseNotes>
|
||||
</metadata>
|
||||
<files>
|
||||
<!-- pdb and xml files not copied see https://github.com/dotnet/sdk/issues/1458 -->
|
||||
<file src="..\..\CefSharp.WinForms\bin\$Platform$\Release\CefSharp.WinForms.dll" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.WinForms\bin\$Platform$\Release\CefSharp.WinForms.pdb" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.WinForms\bin\$Platform$\Release\CefSharp.WinForms.xml" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.WinForms\bin\$Platform$\Release\CefSharp.WinForms.dll" target="lib\net452" />
|
||||
<file src="..\..\CefSharp.WinForms\bin\$Platform$\Release\CefSharp.WinForms.pdb" target="lib\net452" />
|
||||
<file src="..\..\CefSharp.WinForms\bin\$Platform$\Release\CefSharp.WinForms.xml" target="lib\net452" />
|
||||
|
||||
<file src="..\Readme.txt" target="" />
|
||||
</files>
|
||||
</package>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>CefSharp.Wpf.win-$Platform$</id>
|
||||
<version>$version$</version>
|
||||
<authors>The CefSharp Authors</authors>
|
||||
<owners>The CefSharp Authors</owners>
|
||||
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
|
||||
<licenseUrl>https://raw.github.com/cefsharp/CefSharp/master/LICENSE</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>The CefSharp Chromium-based browser component (WPF control).</description>
|
||||
<tags>wpf chrome browser cefsharp</tags>
|
||||
<copyright>Copyright © The CefSharp Authors</copyright>
|
||||
<dependencies>
|
||||
<group targetFramework=".NETFramework4.5.2">
|
||||
<dependency id="CefSharp.Common.win-$Platform$" version="[$version$]" />
|
||||
</group>
|
||||
<group targetFramework=".NETCoreApp3.0">
|
||||
<dependency id="CefSharp.Common.win-$Platform$" version="[$version$]" />
|
||||
</group>
|
||||
</dependencies>
|
||||
<releaseNotes>
|
||||
<![CDATA[
|
||||
See https://github.com/cefsharp/CefSharp/releases/tag/v$version$ for release notes including Known Issues, Breaking Changes, Bugs Fixed, new features.
|
||||
Important you read the release notes to see what's changed in this version.
|
||||
]]>
|
||||
</releaseNotes>
|
||||
</metadata>
|
||||
<files>
|
||||
<!-- pdb and xml files not copied see https://github.com/dotnet/sdk/issues/1458 -->
|
||||
<file src="..\..\CefSharp.Wpf\bin\$Platform$\Release\CefSharp.Wpf.dll" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.Wpf\bin\$Platform$\Release\CefSharp.Wpf.pdb" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.Wpf\bin\$Platform$\Release\CefSharp.Wpf.xml" target="lib\netcoreapp3.0" />
|
||||
<file src="..\..\CefSharp.Wpf\bin\$Platform$\Release\CefSharp.Wpf.dll" target="lib\net452" />
|
||||
<file src="..\..\CefSharp.Wpf\bin\$Platform$\Release\CefSharp.Wpf.pdb" target="lib\net452" />
|
||||
<file src="..\..\CefSharp.Wpf\bin\$Platform$\Release\CefSharp.Wpf.xml" target="lib\net452" />
|
||||
|
||||
<file src="..\Readme.txt" target="" />
|
||||
</files>
|
||||
</package>
|
||||
@@ -288,11 +288,21 @@ function Nupkg
|
||||
|
||||
Write-Diagnostic "Building nuget package"
|
||||
|
||||
# Build packages
|
||||
# Build old packages
|
||||
. $nuget pack nuget\CefSharp.Common.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget -Properties "RedistVersion=$RedistVersion"
|
||||
. $nuget pack nuget\CefSharp.Wpf.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget
|
||||
. $nuget pack nuget\CefSharp.OffScreen.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget
|
||||
. $nuget pack nuget\CefSharp.WinForms.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget
|
||||
|
||||
# Build newer style packages
|
||||
. $nuget pack nuget\PackageReference\CefSharp.Common.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "RedistVersion=$RedistVersion;Platform=x86;PlatformNative=Win32"
|
||||
. $nuget pack nuget\PackageReference\CefSharp.Common.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "RedistVersion=$RedistVersion;Platform=x64;PlatformNative=x64"
|
||||
. $nuget pack nuget\PackageReference\CefSharp.OffScreen.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "Platform=x86"
|
||||
. $nuget pack nuget\PackageReference\CefSharp.OffScreen.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "Platform=x64"
|
||||
. $nuget pack nuget\PackageReference\CefSharp.Wpf.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "Platform=x86"
|
||||
. $nuget pack nuget\PackageReference\CefSharp.Wpf.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "Platform=x64"
|
||||
. $nuget pack nuget\PackageReference\CefSharp.WinForms.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "Platform=x86"
|
||||
. $nuget pack nuget\PackageReference\CefSharp.WinForms.win.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget\PackageReference -Properties "Platform=x64"
|
||||
|
||||
# Invoke `AfterBuild` script if available (ie. upload packages to myget)
|
||||
if(-not (Test-Path $WorkingDir\AfterBuild.ps1)) {
|
||||
|
||||
Reference in New Issue
Block a user