FrendsTaskAnalyzers 1.11.0

dotnet add package FrendsTaskAnalyzers --version 1.11.0
                    
NuGet\Install-Package FrendsTaskAnalyzers -Version 1.11.0
                    
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="FrendsTaskAnalyzers" Version="1.11.0">
  <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="FrendsTaskAnalyzers" Version="1.11.0" />
                    
Directory.Packages.props
<PackageReference Include="FrendsTaskAnalyzers">
  <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 FrendsTaskAnalyzers --version 1.11.0
                    
#r "nuget: FrendsTaskAnalyzers, 1.11.0"
                    
#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 FrendsTaskAnalyzers@1.11.0
                    
#: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=FrendsTaskAnalyzers&version=1.11.0
                    
Install as a Cake Addin
#tool nuget:?package=FrendsTaskAnalyzers&version=1.11.0
                    
Install as a Cake Tool

FrendsTaskAnalyzers

Analyzers Build Coverage NuGet Version License: MIT

Package of Roslyn analyzers designed to help in the development of Frends tasks by enforcing conformance to task development guidelines and best practices.

Installation

The recommended way to add the analyzers to your task project is by adding the NuGet package as a PackageReference in your .csproj. This ensures the analyzers are automatically active during development and build processes.

<PropertyGroup>
  <PackageReference Include="FrendsTaskAnalyzers" Version="*">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
  </PackageReference>
</PropertyGroup>

Configuration

After installation, you need to tell the analyzers which methods in your code are task methods.

There are two ways of doing this:

This is the simplest and recommended way to configure the analyzers. The FrendsTaskMetadata.json file is a standard part of Frends tasks, and the analyzers can use it to automatically discover the task methods.

To enable this, ensure the FrendsTaskMetadata.json file is included as an AdditionalFiles item in your .csproj file.

<ItemGroup>
  <AdditionalFiles Include="FrendsTaskMetadata.json" Pack="true" PackagePath="/">
    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  </AdditionalFiles>
</ItemGroup>

Using .editorconfig

Alternatively, you can specify the task methods in your .editorconfig file. This is useful if you cannot change the FrendsTaskMetadata.json file to an AdditionalFiles item.

Add the frends_task_analyzers.task_methods key to your .editorconfig file with a semicolon-separated list of your complete task method names.

[*.cs]
frends_task_analyzers.task_methods = Frends.Echo.Execute.Echo.Execute;Frends.Echo.Execute.Echo.Execute2

Alternative Usage: Roslynator CLI

If you cannot add a PackageReference to your project, you can run the analyzers using the Roslynator CLI.

You will need to configure the task methods using an .editorconfig file as described above, unless FrendsTaskMetadata.json is already configured as an AdditionalFiles item.

  1. Install Roslynator CLI tool:
dotnet tool install -g Roslynator.DotNet.Cli
  1. Acquire analyzer DLLs: Download the FrendsTaskAnalyzers NuGet package from the NuGet feed or a GitHub release. Unzip the DLL files from the package to a local directory.
unzip -o -j -d analyzers FrendsTaskAnalyzers.nupkg *.dll
  1. Run analysis: Execute Roslynator from your project's directory, providing the path to the analyzer assemblies.
roslynator analyze --analyzer-assemblies /path/to/analyzers
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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.11.0 1,033 11/3/2025
1.9.0 260 10/22/2025
1.8.0 229 10/14/2025
1.7.0 189 10/7/2025
1.6.0 159 10/3/2025
1.4.0 210 8/13/2025
1.3.0 187 8/11/2025
1.2.0 195 8/4/2025
1.1.0 195 7/8/2025