Eternet.Analyzers.FeatureFolder
1.0.4
Prefix Reserved
dotnet add package Eternet.Analyzers.FeatureFolder --version 1.0.4
NuGet\Install-Package Eternet.Analyzers.FeatureFolder -Version 1.0.4
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="Eternet.Analyzers.FeatureFolder" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Eternet.Analyzers.FeatureFolder" Version="1.0.4" />
<PackageReference Include="Eternet.Analyzers.FeatureFolder" />
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 Eternet.Analyzers.FeatureFolder --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Eternet.Analyzers.FeatureFolder, 1.0.4"
#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 Eternet.Analyzers.FeatureFolder@1.0.4
#: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=Eternet.Analyzers.FeatureFolder&version=1.0.4
#tool nuget:?package=Eternet.Analyzers.FeatureFolder&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Eternet.Analyzers.FeatureFolder
Roslyn analyzer and code fix package for feature-folder conventions.
Current diagnostics:
EANF001: Namespace does not match expected namespace inferred fromFeatures/<Feature>/...path.EANF002: Top-level type role suffix (Handler,Command,Query,Step,Pipeline) does not match feature role namespace segment. Nested feature members such asCreateCity.Handlerare intentionally ignored.EANF003: Handler feature segment differs from the feature segment of its matching request type.
Code fix behavior:
FeatureFolderPlacementCodeFixProviderrewrites the declared namespace to the expected namespace carried by the diagnostic.- The fix is still experimental for repository-wide automation because namespace changes can require solution-closed reference updates.
- Within the fixed document, the provider also guards common namespace/type collisions. If a newly introduced namespace segment shadows an imported type that was previously resolved semantically, the fix adds a local alias and rewrites the ambiguous type references. Example: after moving a file into
Features.ErrorTracking, references to a model type namedErrorTrackingbecomeErrorTrackingModelthroughusing ErrorTrackingModel = global::...Common.Models.ErrorTracking;. - Alias suffixes are semantic when possible:
Entity,Dto,Contract, otherwiseModel.
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.