How to install the custom patch Syncfusion NuGet in macOS machine
Overview:
This knowledge base article explains how to install and configure a custom (customer patch) NuGet package on a macOS machine using Visual Studio Code (VS Code). This method is commonly used when the NuGet package is provided as a .nupkg file in a local feed.
The steps below are simple, repeatable, and recommended for .NET projects on macOS.
Step 1: Open the Project in Visual Studio Code
- Launch Visual Studio Code.
- Click File → Open Folder.
- Select your .NET project folder and click Open.
Step 2: Configure the Custom NuGet Source
- Copy the customer patch .nupkg file to a folder, for example:
- /Users/<username>/nuget-local
- Open Terminal in VS Code (Terminal → New Terminal).
- Add the local NuGet source:
- dotnet nuget add source "C:\Users\<username>\NuGet-Local" --name CustomerPatchLocal
Step 3: Verify NuGet Source Configuration
Run the following command:
dotnet nuget list source
Ensure your custom patch source names as ‘CustomerPatchLocal’ appears in the list.
Step 4: Install the Customer Patch NuGet Package
Navigate to your project directory and run:
dotnet add package <Custom.Package.Name> --version X.X.X --source CustomerPatchLocal
Step 5: Restore and Build the Project
- Restore dependencies:
- dotnet restore
- Build the project:
- dotnet build
Step 6: Validate Installation
- Verify the package entry exists inside the .csproj file.
- Ensure there are no restore or build errors.
- Confirm expected behavior from the customer patch during runtime.
You have successfully installed and configured a custom patch NuGet package on macOS using Visual Studio Code.