Upgrading Syncfusion WPF NuGet packages to a latest version
27 Jun 20223 minutes to read
Every three months, Syncfusion releases new volumes with interesting new features. For this volume, there will be weekly NuGet release and one service pack. Syncfusion WPF NuGet packages are released on a weekly basis to address critical issue fixes.
From any Syncfusion WPF NuGet version you have installed; you can update to our most recent version.
Upgrade NuGet packages through Package Manager UI
The NuGet Package Manager UI in Visual Studio allows you to easily install, uninstall, and update NuGet packages in applications and solutions. You can find and upgrade the Syncfusion WPF NuGet packages to the most recent version or to specific version in the WPF solution or application and this process is easy with the steps below:
-
Right-click on the WPF application or solution in the Solution Explorer tab, and choose Manage NuGet Packages…
As an alternative, after opening the WPF application in Visual Studio, go to the Tools menu and after hovering NuGet Package Manager, select Manage NuGet Packages for Solution…
-
The Manage NuGet Packages window will open. Navigate to the Updates tab, then search for the Syncfusion WPF NuGet packages using a term like “Syncfusion.WPF” and and select the appropriate Syncfusion WPF NuGet package for your application.
The nuget.org package source is selected by default in the Package source drop-down. If your Visual Studio does not have nuget.org configured, follow the instructions in the Microsoft documents to set up the nuget.org feed URL.
-
By default, the package selected with latest version. You can select the required version and click the Update button and accept the license terms. The package will be upgraded to selected version in your WPF application.
You can choose the multiple NuGet packages by selecting the checkbox like below and click the Update button to update the multiple Syncfusion NuGet packages in your application.
Upgrade NuGet packages through .NET CLI
There is no distinct command for the update procedure in the .NET CLI. Unless you specify the package version, .NET CLI installs the latest version of the Syncfusion WPF NuGet packages when you use the dotnet add package command.
To specify a version, add the -v parameter:
dotnet add package Syncfusion.SfGrid.WPF -v 19.3.0.44
Upgrade NuGet packages through Package Manager Console
The Package Manager Console saves saves NuGet packages upgrade time since you don’t have to search for the package you want to update, and you can just type the command to update the appropriate Syncfusion WPF NuGet package. Follow the steps below to upgrade the installed Syncfusion NuGet packages using the Package Manager Console in your WPF application.
-
To show the Package Manager Console, open your WPF application in Visual Studio and navigate to Tools in the Visual Studio menu and after hovering NuGet Package Manager, select Package Manager Console.
-
The Package Manager Console will be shown at the bottom of the screen. You can install the Syncfusion WPF NuGet packages by enter the following NuGet update commands.
Update specified Syncfusion WPF NuGet package
The below command will update the Syncfusion WPF NuGet package in the default WPF application.
Update-Package <Package Name>
For example: Update-Package Syncfusion.SfGrid.WPF
Update specified Syncfusion WPF NuGet package in specified WPF application
The below command will update the Syncfusion WPF NuGet package in the given WPF application alone.
Update-Package <Package Name> -ProjectName <Project Name>
For example: Update-Package Syncfusion.SfGrid.WPF -ProjectName SyncfusionWpfApp
-
By default, the package will be installed with latest version. You can give the required version with the -Version term like below to install the Syncfusion WPF NuGet packages in the appropriate version.
Update-Package Syncfusion.SfGrid.WPF -Version 19.3.0.44
-
The NuGet package manager will update the Syncfusion WPF NuGet package as well as the dependencies it has.