Raffinert.Spec.Analyzer
0.0.2
dotnet add package Raffinert.Spec.Analyzer --version 0.0.2
NuGet\Install-Package Raffinert.Spec.Analyzer -Version 0.0.2
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="Raffinert.Spec.Analyzer" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Raffinert.Spec.Analyzer --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Raffinert.Spec.Analyzer, 0.0.2"
#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.
// Install Raffinert.Spec.Analyzer as a Cake Addin #addin nuget:?package=Raffinert.Spec.Analyzer&version=0.0.2 // Install Raffinert.Spec.Analyzer as a Cake Tool #tool nuget:?package=Raffinert.Spec.Analyzer&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SpecTemplate Analyzers
This Roslyn analyzer package helps prevent runtime errors when using Raffinert.Spec
.
Purpose
- Ensures correct usage of
SpecTemplate<TSample>.Adapt<TN>()
by validating thatTN
contains all required members fromTTemplate
at compile-time instead of failing at runtime. - Enforces correct usage of
SpecTemplate.Create(...)
, requiring the first argument to be an anonymous type projection (e.g.,p => new { p.Name }
) to prevent invalid expressions.
By catching these issues early, this analyzer enhances code reliability and prevents unexpected failures when adapting specifications.
Repository
For more details, visit Raffinert.Spec
.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.