Browse our Products Toggle navigation
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
InstallationThe package is available at nuget.org and it can be installed via package manager console by executing following command:PM> NuGet\Install-Package GroupDocs.Comparison-Cloud
The package is available at nuget.org and it can be installed via package manager console by executing following command:
PM> NuGet\Install-Package GroupDocs.Comparison-Cloud
You can easily install the GroupDocs.Comparison library for .NET in two ways:
NuGet Package Manager: Open Visual Studio, right-click your project, and select Manage NuGet Packages. Search for “GroupDocs.Comparison” and install the latest version.
Manage NuGet Packages
Package Manager Console: Open the console in Visual Studio and run:
PM> Install-Package GroupDocs.Comparison
.NET CLI: In your terminal, navigate to your project folder and run:
dotnet add package GroupDocs.Comparison
GroupDocs.Comparison.dll
This code allows developers to compare two versions of source code files, control the acceptance or rejection of detected changes, and merge them into a single result file. This feature is critical for collaborative development environments, especially when working with version control systems.
// Instantiate the Comparer object and load the source file using (Comparer comparer = new Comparer(sourcePath)) { // Add the target file for comparison comparer.Add(targetPath); // Perform the comparison and store the result comparer.Compare(resultPath); // Get the list of detected changes ChangeInfo[] changes = comparer.GetChanges(); // Accept the first 10 changes for (int i = 0; i < 10; i++) { changes[i].ComparisonAction = ComparisonAction.Accept; } // Reject the remaining changes for (int i = 10; i < changes.Length; i++) { changes[i].ComparisonAction = ComparisonAction.Reject; } // Apply the accepted and rejected changes to the result file comparer.ApplyChanges(File.Create(resultPath), new ApplyChangeOptions { Changes = changes }); }
This example demonstrates how to compare two password-protected documents. It shows how to securely manage documents that require password protection, allowing developers to handle sensitive files in a secure .NET environment.
// Define the load options with the password for the source document LoadOptions sourceLoadOptions = new LoadOptions(){ Password = "1234" }; // Create the Comparer object for the source document using (Comparer comparer = new Comparer("source.docx", sourceLoadOptions)) { // Define load options with the password for the target document LoadOptions targetLoadOptions = new LoadOptions() { Password = "5678" }; // Add the target document with the specified load options comparer.Add("target.docx", targetLoadOptions); // Perform the comparison and save the result comparer.Compare("result.docx"); }
Document Comparison API | .NET Cloud API | GroupDocs.Comparison Cloud | REST API | Document Comparison | Folder Comparison | Revision Control | Track Changes | Preview Generation | Multi-format Support | Password Protected Documents | Source Code Comparison | Change Tracking | Customization | Document Merging | Change Coordinates | Metadata Extraction | Document Security | File Formats | Document Review | Multi-language Support | Fast Processing | Secure API Access | Data Encryption | Cloud Storage Integration | GitHub Repository
Document Comparison API
.NET Cloud API
GroupDocs.Comparison Cloud
REST API
Document Comparison
Folder Comparison
Revision Control
Track Changes
Preview Generation
Multi-format Support
Password Protected Documents
Source Code Comparison
Change Tracking
Customization
Document Merging
Change Coordinates
Metadata Extraction
Document Security
File Formats
Document Review
Multi-language Support
Fast Processing
Secure API Access
Data Encryption
Cloud Storage Integration
GitHub Repository