XPathDuplicateAnalyzer 1.0.41

dotnet add package XPathDuplicateAnalyzer --version 1.0.41
                    
NuGet\Install-Package XPathDuplicateAnalyzer -Version 1.0.41
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XPathDuplicateAnalyzer" Version="1.0.41">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XPathDuplicateAnalyzer" Version="1.0.41" />
                    
Directory.Packages.props
<PackageReference Include="XPathDuplicateAnalyzer">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XPathDuplicateAnalyzer --version 1.0.41
                    
#r "nuget: XPathDuplicateAnalyzer, 1.0.41"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XPathDuplicateAnalyzer@1.0.41
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XPathDuplicateAnalyzer&version=1.0.41
                    
Install as a Cake Addin
#tool nuget:?package=XPathDuplicateAnalyzer&version=1.0.41
                    
Install as a Cake Tool

XPathDuplicateAnalyzer for C#

A Roslyn Analyzer for detecting duplicate XPath functions in the same file of the form "Locator(yourXpath);".

Getting started

Install the package from NuGet, clean your solution, rebuild it, and the analyzer will detect duplicate XPath functions in the same class.

Warnings will show up in the format:

Code: XPathDuplicate Description: FunctionName1 (line number) | FunctionName2 (line number)

Prerequisites

This analyzer is built for C# projects using the Roslyn compiler. It uses the Roslyn API to analyze the syntax tree of your code and uses .Net Standard 2.0.

Duplicate XPath Example

These two lines of code are considered duplicates because they both use the same XPath "//div[@name='uxThresholdFormat001SubmitButton']".

Line 35: public ILocator BtnSubTreshold00() ⇒ Locator("//div[@name='uxThresholdFormat001SubmitButton']");

Line 68: public ILocator TxtCurrTreshPerc00() ⇒ Locator("//input[@name='uxThresholdFormat001SubmitButton']");

Code: XPathDuplicate Description: BtnSubTreshold00 (35) | TxtCurrTreshPerc00 (68)

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.41 279 2/12/2026
1.0.40 108 2/12/2026
1.0.39 113 2/12/2026
1.0.38 311 12/4/2025
1.0.37 209 12/4/2025
1.0.36 205 12/4/2025
1.0.35 209 12/4/2025
1.0.34 205 12/3/2025
1.0.33 202 12/3/2025
1.0.32 415 11/20/2025
1.0.31 411 11/19/2025
1.0.30 414 11/19/2025
1.0.29 471 11/13/2025
1.0.28 296 7/26/2024
1.0.27 155 7/25/2024
1.0.26 150 7/25/2024
1.0.25 155 7/25/2024
1.0.24 150 7/24/2024
1.0.23 150 7/24/2024
1.0.22 161 7/24/2024
Loading failed