Skip to content

Commit

Permalink
Tools - Fix UpdateNugetPackages.ps1 paths
Browse files Browse the repository at this point in the history
Updated to reflect changes made in #3311
  • Loading branch information
amaitland committed Jan 9, 2021
1 parent 151f806 commit 7b45415
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UpdateNugetPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function RemoveEnsureNuGetPackageBuildImports
}
}

$vcxprojFiles = @('CefSharp.Core\CefSharp.Core.vcxproj','CefSharp.BrowserSubprocess.Core\CefSharp.BrowserSubprocess.Core.vcxproj')
$vcxprojFiles = @('CefSharp.Core.Runtime\CefSharp.Core.Runtime.vcxproj','CefSharp.BrowserSubprocess.Core\CefSharp.BrowserSubprocess.Core.vcxproj')

foreach($file in $vcxprojFiles)
{
Expand All @@ -30,7 +30,7 @@ foreach($file in $vcxprojFiles)
RemoveEnsureNuGetPackageBuildImports (Resolve-Path $file)
}

$vcxprojFiles = @('CefSharp.Core\CefSharp.Core.netcore.vcxproj', 'CefSharp.BrowserSubprocess.Core\CefSharp.BrowserSubprocess.Core.netcore.vcxproj')
$vcxprojFiles = @('CefSharp.Core.Runtime\CefSharp.Core.Runtime.netcore.vcxproj', 'CefSharp.BrowserSubprocess.Core\CefSharp.BrowserSubprocess.Core.netcore.vcxproj')

foreach($file in $vcxprojFiles)
{
Expand All @@ -48,9 +48,9 @@ foreach($file in $csprojFiles)
RemoveEnsureNuGetPackageBuildImports (Resolve-Path $file)
}

#Read the newly updated version number from the packages.CefSharp.Core.config
#Read the newly updated version number from the packages.CefSharp.Core.Runtime.config

$CefSharpCorePackagesXml = [xml](Get-Content (Resolve-Path 'CefSharp.Core\packages.CefSharp.Core.config'))
$CefSharpCorePackagesXml = [xml](Get-Content (Resolve-Path 'CefSharp.Core.Runtime\packages.CefSharp.Core.Runtime.config'))
$RedistVersion = $CefSharpCorePackagesXml.SelectSingleNode("//packages/package[@id='cef.sdk']/@version").value

$netcorecsprojFiles = @('CefSharp.WinForms.Example\CefSharp.WinForms.Example.netcore.csproj','CefSharp.Wpf.Example\CefSharp.Wpf.Example.netcore.csproj','CefSharp.OffScreen.Example\CefSharp.OffScreen.Example.netcore.csproj', 'CefSharp.Test\CefSharp.Test.netcore.csproj')
Expand Down

0 comments on commit 7b45415

Please sign in to comment.