Skip to content

Commit cf2d9b1

Browse files
committed
Tools - Update UpdateNugetPackages.ps1 to support Arm64 changes
Follow up to #3359
1 parent b994264 commit cf2d9b1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

UpdateNugetPackages.ps1

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Update the .Net 4.5.2 csproj files using nuget.exe
77
# Update the .Net Core csproj files modifying the xml file directly
88

9-
$CefVersion = '90.1.0'
9+
$CefVersion = '90.2.3'
1010

1111
function RemoveEnsureNuGetPackageBuildImports
1212
{
@@ -58,7 +58,7 @@ $RedistVersion = $CefSharpCorePackagesXml.SelectSingleNode("//packages/package[@
5858

5959
$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')
6060

61-
#Loop through the net core projects and update the package version number
61+
#Loop through the net core example projects and update the package version number
6262

6363
foreach($file in $netcorecsprojFiles)
6464
{
@@ -67,11 +67,9 @@ foreach($file in $netcorecsprojFiles)
6767
$xml.PreserveWhitespace = $true
6868
$xml.Load($file)
6969

70-
$packRefx86 = $xml.Project.ItemGroup.PackageReference | Where-Object {$_."Include" -eq "cef.redist.x86"}
71-
$packRefx64 = $xml.Project.ItemGroup.PackageReference | Where-Object {$_."Include" -eq "cef.redist.x64"}
70+
$packRef = $xml.Project.ItemGroup.PackageReference | Where-Object {$_."Include" -eq "chromiumembeddedframework.runtime"}
7271

73-
$packRefx86.Version = $RedistVersion
74-
$packRefx64.Version = $RedistVersion
72+
$packRef.Version = $RedistVersion
7573

7674
$xml.Save( $file )
7775
}

0 commit comments

Comments
 (0)