[]
The GcExcel .NET packages are fully supported on Visual Studio 2017 or later for Windows, Visual Studio for MAC, and Visual Studio Code for Linux and are compatible with the following:
The following table lists the open-source library that is used in GcExcel .NET:
Name | Version | Description and Usage |
---|---|---|
Newtonsoft.Json | 13.0.1 | Reads and writes JSON. It also Implements JSON DOM data binding. |
GcExcel .NET reference is available through NuGet, a Visual Studio extension that automatically adds libraries and references to your project. To work with GcExcel .NET, you need to have following references in your application:
Reference | Purpose |
---|---|
To use GcExcel in an application, you need to reference (install) just the GrapeCity.Documents.Excel package. It pulls in the required infrastructure packages. |
In order to use GcExcel .NET in a .NET Core, ASP.NET Core, .NET Framework application (any target that supports .NET Standard 2.0), install the NuGet packages in your application using the following steps:
To find and install the GrapeCity.Documents.Excel NuGet package
In Solution Explorer, right-click either Dependencies or a project and select Manage NuGet Packages.
In the Browse tab, select nuget.org from the Package source dropdown.
In the Browse tab, type "grapecity.documents" or "GrapeCity.Documents" in the search text box at the top and find the package "GrapeCity.Documents.Excel" as shown in the below image.
Click Install to install the GrapeCity.Documents.Excel package and its dependencies into the project. When the installation is complete, make sure you check the NuGet folder in your solution explorer and confirm whether or not the GrapeCity.Documents.Excel package is added to your project dependencies.
To manually create NuGet package source
In order to manually create Nuget feed source, you need to complete the following steps to add the Nuget feed URL to your Nuget settings in Visual Studio. Before you proceed with this step, make sure you first download the GcExcel .NET and put it in a local folder, for example - "D:\Nupkg".
From the Tools menu, select Nuget Package Manager | Package Manager Settings. The Options dialog box appears.
In the left pane, select Package Sources.
Click the button in the top right corner. A new source is added under Available Package Sources.
Set a Name for the new package source.
To add source in the Source field**,** click the ellipsis button next to the Source field to browse for the Nupkg folder.
After you select the Nupkg folder, click the Update button and finally click OK.
To install the GrapeCity.Documents.Excel package using command line interface
Open the CommandPrompt window on your Windows system.
Create a console application 'myApp' by using the command: dotnet new console -o myApp
Use the cd command to navigate to your project folder: cd myApp
Install GcExcel .NET NuGet package using the following command:dotnet add package GrapeCity.Documents.Excel
To add GrapeCity.Documents.Excel package reference
GcExcel .NET is a cross-platform spreadsheet component that can be used on multiple platforms including Windows, Linux and Mac operating system.
In case you are creating an application using the Visual Studio, user can edit the **.csproj file and a package reference as shown in the image below:
After this step, follow the steps in the Quick Start section.
Open Visual Studio for MAC.
Create any application (any target that supports .NET Standard 2.0).
In tree view on the left, right-click Dependencies and choose Add Packages.
In the Search panel, type "GrapeCity.Documents".
From the list of packages displayed in the left panel, select GrapeCity.Documents.Excel and click Add Packages.
Click Accept.
This automatically adds references of the package and its dependencies to your application. After this step, follow the steps in the Quick Start section.
Open Visual Studio Code.
Install Nuget Package Manager from Extensions.
Create a folder "MyApp" in your Home folder.
In the Terminal in Visual Studio Code, type "cd MyApp"
Type command "dotnet new console"Observe: This creates a .NETCore application with MyApp.csproj file and Program.cs.
Press Ctrl+P. A command line opens at the top.
Type command: ">"Observe: "Nuget Package Manager: Add Package" option appears.
Click the above option.
Type "Grapecity" and press Enter.Observe: GrapeCity packages get displayed in the dropdown.
Choose GrapeCity.Documents.Excel.
Type following command in the Terminal window: "dotnet restore"
This adds references of the package to your application. After this step, follow the steps in the Quick Start section.