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.
Select GroupDocs.Viewer package and version
Starting with version 26.8, GroupDocs.Viewer is a NuGet metapackage that uses TFM-split packaging. You install one package name; NuGet restores the runtime package that matches your project’s target framework:
Do not reference the runtime packages directly. Add GroupDocs.Viewer to your project, and NuGet selects the correct runtime.
Note
If you previously used GroupDocs.Viewer.CrossPlatform, replace that package reference with GroupDocs.Viewer. The assembly name, namespaces, and public API are unchanged, so no code changes are required. As of 26.8 the CrossPlatform package is deprecated and only forwards to GroupDocs.Viewer.
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 provides a high degree of backward compatibility. Applications targeting an earlier supported version of .NET Framework can generally run on later versions. See the Microsoft documentation for details.
Install GroupDocs.Viewer using NuGet packages
You can use the following tools to install the GroupDocs.Viewer NuGet packages:
Some earlier versions of Visual Studio do not include NuGet Package Manager by default. It can be added as an extension from the Visual Studio Marketplace.
Open your project or solution in Visual Studio and follow the steps below to install the GroupDocs.Viewer 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 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 following command to install the latest version of the package:
PM> Install-Package GroupDocs.Viewer
Use the .NET CLI
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
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.
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 you reference GroupDocs.Viewer from a ZIP or MSI download instead of NuGet, ensure that your project has all the required dependencies for the target framework. 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.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.