Scotec.Revit.Analyzers 2027.4.1

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Scotec.Revit.Analyzers --version 2027.4.1
                    
NuGet\Install-Package Scotec.Revit.Analyzers -Version 2027.4.1
                    
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="Scotec.Revit.Analyzers" Version="2027.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scotec.Revit.Analyzers" Version="2027.4.1" />
                    
Directory.Packages.props
<PackageReference Include="Scotec.Revit.Analyzers" />
                    
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 Scotec.Revit.Analyzers --version 2027.4.1
                    
#r "nuget: Scotec.Revit.Analyzers, 2027.4.1"
                    
#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 Scotec.Revit.Analyzers@2027.4.1
                    
#: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=Scotec.Revit.Analyzers&version=2027.4.1
                    
Install as a Cake Addin
#tool nuget:?package=Scotec.Revit.Analyzers&version=2027.4.1
                    
Install as a Cake Tool

Scotec.Revit.Analyzers

Roslyn analyzers that enforce correct usage patterns for Autodesk Revit add-ins built with the Scotec.Revit libraries.

Overview

Scotec.Revit.Analyzers is a compile-time Roslyn diagnostic analyzer package that detects common mistakes in Revit add-in code. It is automatically included as an analyzer dependency when you install Scotec.Revit, so you do not normally need to reference it directly.

Diagnostics

RevitTaskDispatcherRunAnalyzer: Detects incorrect RevitTaskDispatcher usage that would cause Revit API calls to execute outside the valid Revit API context. For example, calling Revit API methods directly from background threads or async continuations instead of dispatching them through the IExternalEventHandler mechanism.

Usage

This package is consumed automatically as part of Scotec.Revit. Diagnostics appear in the Visual Studio Error List and as build warnings or errors according to your project severity settings.

dotnet add package Scotec.Revit.Analyzers

License

MIT License https://licenses.nuget.org/MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • 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
2027.4.2-dev.7 38 11/17/2026
2027.4.2-dev.5 55 11/16/2026
2027.4.1 124 11/1/2026
2026.4.2-dev.7 39 11/17/2026
2026.4.2-dev.5 59 11/16/2026
2026.4.1 115 11/1/2026
2025.4.2-dev.7 46 11/17/2026
2025.4.2-dev.5 55 11/16/2026
2025.4.1 119 11/1/2026