This topic describes how to add the GroupDocs.Viewer library to your .NET project. You can use a NuGet package to install this library or you can download necessary DLLs from the GroupDocs website: https://releases.groupdocs.com/viewer/net/.
- .NET 6.0 and later versions. - Prefered for Linux and macOS.
You can also use GroupDocs.Viewer with .NET Framework 2.0 (Visual Studio 2005-2008), .NET Framework 4.0 (Visual Studio 2010), and later .NET Framework versions by selecting one of the previous versions of the GroupDocs.Viewer package. See the complete list of package versions and supported frameworks in the table below.
.NET Framework versions are designed to be backward compatible. This means that you can use GroupDocs.Viewer for .NET targeting .NET Framework 2.0 with later versions of .NET Framework, such as .NET Framework 4.0. Learn more about .NET Framework backward compatibility here.
Install GroupDocs.Viewer using NuGet packages
You can use the following tools to install the GroupDocs.Viewer or GroupDocs.Viewer.CrossPlatform NuGet packages:
Open your project or solution in Visual Studio and follow the steps below to install the GroupDocs.Viewer or GroupDocs.Viewer.CrossPlatform package using the NuGet Package Manager:
In Solution Explorer, right-click your project name and select Manage NuGet Packages to display the NuGet Package Manager.
Select the Browse tab and type GroupDocs.Viewer or GroupDocs.Viewer.CrossPlatform in the search box. Select the latest version of the package and click Install.
Use the Package Manager Console
The Package Manager Console uses PowerShell commands to install, update, and remove NuGet packages. Open your project in Visual Studio and click Tools -> NuGet Package Manager -> Package Manager Console to open the console window. Run the the following command to install the latest version of the package:
You can also use the .NET CLI tool to install and update NuGet packages. Open a terminal in your project’s folder and execute the following command to install the package:
dotnet add package GroupDocs.Viewer
dotnet add package GroupDocs.Viewer.CrossPlatform
Download GroupDocs.Viewer from the official website
Visit https://releases.groupdocs.com/viewer/net/ and download the GroupDocs.Viewer assemblies as a ZIP archive or MSI installer. To reference the downloaded assembly files in your project, do the following:
Extract files from the ZIP archive or run the MSI installer to install GroupDocs.Viewer to a specific location on your computer.
Open your solution or project in Visual Studio.
In Solution Explorer, right-click the References or Dependencies node, and select Add Reference (for a .NET Framework project) or Add Project Reference (for a .NET project).
In the Reference Manager dialog box, select the Browse tab and click Browse to locate the GroupDocs.Viewer.dll file for the target framework.
Click OK to add a reference to the GroupDocs.Viewer library to your project.
Warning
If your application targets .NET Core / .NET 5+, ensure that your project has all the required dependencies installed. Refer to the following page for details: GroupDocs.Viewer dependencies.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.