File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 55 [Parameter (Position = 1 )]
66 [string ] $Version = " 51.0.0" ,
77 [Parameter (Position = 2 )]
8- [string ] $AssemblyVersion = " 51.0.0" ,
9- [Parameter (Position = 3 )]
10- [string ] $RedistVersion = " 3.2704.1418"
8+ [string ] $AssemblyVersion = " 51.0.0"
119)
1210
1311$WorkingDir = split-path - parent $MyInvocation.MyCommand.Definition
14-
1512$CefSln = Join-Path $WorkingDir ' CefSharp3.sln'
1613
14+ # Extract the current CEF Redist version from the CefSharp.Core\packages.config file
15+ # Save having to update this file manually Example 3.2704.1418
16+ $CefSharpCorePackagesXml = [xml ](Get-Content (Join-Path $WorkingDir ' CefSharp.Core\Packages.config' ))
17+ $RedistVersion = $CefSharpCorePackagesXml.SelectSingleNode (" //packages/package[@id='cef.sdk']/@version" ).value
18+
1719function Write-Diagnostic
1820{
1921 param (
@@ -289,6 +291,8 @@ function WriteAssemblyVersion
289291 $NewString | Set-Content $Filename - Encoding UTF8
290292}
291293
294+ Write-Diagnostic " CEF Redist Version = $RedistVersion "
295+
292296DownloadNuget
293297
294298NugetPackageRestore
You can’t perform that action at this time.
0 commit comments