Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEO-172121-Extension-Nuget-packages-weblinks #96

Open
wants to merge 5 commits into
base: hotfix/hotfix-v21.2.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions Extension/Syncfusion-NuGet-Packages/NuGet-Packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ The NuGet Package Manager can be used to search and install NuGet packages in th

1. Right-click the project or solution in the Solution Explorer tab, and choose **Manage NuGet Packages…**

![NuGet package manager add-in for Windows](NuGet_Packages_Images/img6.png)
![NuGet package Extension manager add-in for Windows](nuget-visualstudioonline_images/nuget-package-extension-window.png)

Alternatively, click **Tools** menu, `NuGet Package Manager | Manage NuGet Packages for Solution...`

2. By default, the NuGet.org package is selected in the **Package source** drop-down. If NuGet.org is not configured in your Visual Studio, refer to the [Microsoft docs](https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui#package-sources) to configure NuGet.org feed URL in your Visual Studio.

![NuGet package manager dialog window](NuGet_Packages_Images/img7.png)
![NuGet package Extension manager dialog window](nuget-visualstudioonline_image/nuget-package-extension-dialog-window.png)

3. The Syncfusion NuGet Packages are listed the available package in the source feed URL. Search and install the required packages in your application, by clicking **Install** button.

Expand Down Expand Up @@ -67,11 +67,11 @@ Add packages can be used to search and install NuGet packages to the Visual Stud

1. Right-click the folder in the project, and then select **Add Packages…**

![NuGet package manager add-in for macOS](NuGet_Packages_Images/img8.png)
![NuGet package Extension manager add-in for macOS](nuget-visualstudioonline_image/nuget-package-extension-manager-addin-macos.png)

2. By default, the NuGet.org package is selected in the **Package source** drop-down.

![Add packages dialog](NuGet_Packages_Images/img9.png)
![Add packages dialog with NuGet Extension](nuget-visualstudioonline_image/nuget-package-extension-dialog.png)

3. The Syncfusion NuGet Packages available in the package source location will be listed. Search and install the required packages in your application, by clicking **Add Package** button.

Expand Down Expand Up @@ -145,7 +145,7 @@ The NuGet Command Line Interface (CLI), Dotnet.exe, provides the full extent of
dotnet restore
~~~

To know more command about the dotnet CLI, refer [here](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet?tabs=netcore2x).
To know more command about the dotnet CLI, refer [here](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet?tabs=netcore2x).

## Managing NuGet package for Visual Studio online application

Expand All @@ -158,31 +158,31 @@ The following steps help you to configure and restore the Syncfusion NuGet packa
N> If you need to Install v16.2.0.46 before Syncfusion NuGet packages, add the required Syncfusion platform NuGet feed links in the NuGet.config file. You can get the Syncfusion NuGet package feed link by clicking the **Copy URL** label from the required platform provided in the following link:
<http://nuget.syncfusion.com>

![Sample project configuration page in Visual Studio Online Application](NuGet-VisualStudioonline_images/NuGet-VisualStudioonline-img1.png)
![Sample project configuration page in Visual Studio Online Application in NuGet Package Extension](nuget-visualstudioonline_image/nuget-packages-extension-sample-project.png)

2. If your application doesn't have any build definitions, create a new build definition by clicking the **New Definition** button under **Build & Release**.

![Build and Release section in Visual Studio Online Application](NuGet-VisualStudioonline_images/NuGet-VisualStudioonline-img2.png)
![Build and Release section in Visual Studio Online Application in NuGet Extension](nuget-visualstudioonline_image/nuget-packages-extension-release-section.png)

![Build process template selection section in Visual Studio Online Application](NuGet-VisualStudioonline_images/NuGet-VisualStudioonline-img3.png)
![Build process template selection section in Visual Studio Online Application in NuGet Package Extension](nuget-visualstudioonline_image/nuget-packages-extension-template-selection.png)

### NuGet installation

1. If your application has any build definitions, navigate to **Build & Release** tab and select the **Edit** option from corresponding application to include the NuGet restore process.

![Build and release section with edit option in Visual Studio Online Application](NuGet-VisualStudioonline_images/NuGet-VisualStudioonline-img4.png)
![Build and release section with edit option in Visual Studio Online Application in NuGet Packages Extension](nuget-visualstudioonline_image/nuget-packages-extension-release-section.png)

N> If you cannot find the NuGet restore process from these build definitions, add it by using **Add build step -> Package -> NuGet Installer**.

2. Update path of the NuGet.config file in Path to NuGet.config textbox and Save this as build definition.

![Edit NuGet.Config path](NuGet-VisualStudioonline_images/NuGet-VisualStudioonline-img5.png)
![Edit NuGet.Config path in NuGet Package Extension](nuget-visualstudioonline_image/nuget-packages-extension-edit-nuget-config.png)

3. Then, start the build process by clicking the **Queue new build** button. The required NuGet packages are restored and the project will be compiled successfully.

![Build compilation status](NuGet-VisualStudioonline_images/NuGet-VisualStudioonline-img7.png)
![Build compilation status in NuGet extension](nuget-visualstudioonline_image/nuget-packages-extension-complition-status.png)

![Build succeeded status](NuGet-VisualStudioonline_images/NuGet-VisualStudioonline-img6.png)
![Build succeeded status in NuGet Package Extension](nuget-visualstudioonline_image/nuget-packages-extension-succeed-status.png)

## Upgrading NuGet packages

Expand All @@ -201,7 +201,7 @@ Using **Update** context menu from Visual Studio for Mac application, NuGet pack

1. Right-click the Packages folder in the project, and select **Update**.

![NuGet package manager add-in for macOS](NuGet_Packages_Images/img10.png)
![NuGet package in extension manager add-in for macOS](nuget-visualstudioonline_image/nuget-package-extension-manager-addin-macos.png)

2. This will update the NuGet package to the latest version. You can double-click the **Add packages** and choose the specific version.

Expand Down Expand Up @@ -303,19 +303,19 @@ You should get the private Syncfusion NuGet feed URL to install or upgrade the S

5. Click the **Update** button to add the name and source details to package sources.

![NuGet Package Manager dialog with Syncfusion Essential JS 2 NuGet feed URL for reference](NuGet_Packages_Images/img2.png)
![NuGet Package Manager dialog with NuGet Extension feed URL for reference](nuget-visualstudioonline_image/nuget-packages-extension-refrence-url.png)

#### macOS

1. Open your Visual Studio application.

2. Right-click the Packages folder in the project, and then select **Add Packages…**

![NuGet package manager add-in for macOS](NuGet_Packages_Images/img3.png)
![NuGet package Extension manager add-in for macOS](nuget-visualstudioonline_image/nuget-packages-extension-manager-addin.png)

3. Choose the **Configure Sources…** from the dropdown that appears in the left corner of the Add Packages dialog.

![Add packages dialog to choose the Configure Sources](NuGet_Packages_Images/img4.png)
![Add packages dialog to choose the Configure Sources in Extension](nuget-visualstudioonline_image/nuget-packages-extension-package-dialog.png)

4. At the bottom right corner of the dialog, click the **Add** button to enter the feed name and the URL.

Expand All @@ -325,7 +325,7 @@ You should get the private Syncfusion NuGet feed URL to install or upgrade the S

For example, Name: Syncfusion ASP.NET Core Packages, Source: [https://nuget.syncfusion.com/nuget_aspnetcore/nuget/getsyncfusionpackages/aspnetcore](https://nuget.syncfusion.com/nuget_aspnetcore/nuget/getsyncfusionpackages/aspnetcore).

![Add Package Source dialog to add Syncfusion NuGet feed](NuGet_Packages_Images/img5.png)
![Add Package Source dialog to add Syncfusion NuGet Package Extension feed](nuget-visualstudioonline_image/nuget-packages-extension-package-source.png)

5. Now, click **Add Source** and then click **OK**.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ You can uninstall already installed Syncfusion NuGet packages from project using

1. Right-click on Project and select **Manage NuGet Packages** option.

![Installed packages details in NuGet Package Manager dialog](NuGet-Uninstallation_images/NuGet-Uninstallation-img2.png)
![Installed/Uninstallation Process packages details in NuGet Package Manager dialog](nuget-package-extension-uninstallation-process-package-details.png)

2. Select the **Installed** tab from NuGet Package Manager dialog and you can see the installed Syncfusion NuGet packages list by giving the Syncfusion keyword in search.

![Installed packages details in NuGet Package Manager dialog](NuGet-Uninstallation_images/NuGet-Uninstallation-img3.png)
![Installed/Uninstallation packages details in NuGet Package Extension Manager dialog](nuget-package-extension-uninstallation-process-details-dialog.png)

3. Uninstall the Syncfusion NuGet packages which are not required for the project.

![Installed packages details in NuGet Package Manager dialog](NuGet-Uninstallation_images/NuGet-Uninstallation-img1.png)
![Installed/Uninstalled Process packages details in NuGet Package Extension Manager dialog](nuget-uninstallation-process_images/nuget-package-extension-uninstallation-process-manager-dialog.png)

N> You cannot uninstall the dependent package because of the package being referred in other NuGet Packages. It removes Project Reference and package from the project location.

4. If you don't want to uninstall the dependent NuGet packages when uninstall the Syncfusion NuGet packages, you can select the **Ignore Dependencies** option to ignore the uninstallation for dependent packages.

![Installed packages details in NuGet Package Manager dialog](NuGet-Uninstallation_images/NuGet-Uninstallation-img4.png)
![Installed/Uninstallation packages details in NuGet Package Extension Manager dialog](nuget-uninstallation-process_images/nuget-package-extension-uninstallation-process-manager-dialog-details.png)

## NuGet Uninstallation by using Package Manager Console

Expand All @@ -44,12 +44,12 @@ You can uninstall already installed Syncfusion NuGet packages from project using

Example: uninstall-package Syncfusion.SfChart.WPF –RemoveDependencies

![NuGet package uninstallation log in Package Manager Console window](Uninstall-from-Package-Manager-Console_images/Uninstall-from-Package-Manager-Console-img1.png)
![NuGet package uninstallation log in NuGet Package Extension Manager Console window](nuget-package-extension-uninstallation-process-console-window.png)

3. You can uninstall the dependent NuGet package alone even if other NuGet packages depend on it by using the below command.

uninstall-package {package name} -Force

Example: uninstall-package Syncfusion.Shared.WPF -Force

![NuGet package uninstallation log in Package Manager Console window](Uninstall-from-Package-Manager-Console_images/Uninstall-from-Package-Manager-Console-img2.png)
![NuGet package Extension Uninstallation log in Package Manager Console window](nuget-package-extension-uninstallation-process-log.png)
Loading