Skip to content

markvincze/MyCustomStyleCopAnalyzerPackage

Repository files navigation

MyCustomStyleCopAnalyzerPackage

This repo illustrates how to distribute custom rules for StyleCopAnalyzers in the form of a Nuget package, based on the documentation.

This was created to accompany my introductory blog post about setting up linting for your .NET Core project.

Usage

If we want to create the package with the dotnet CLI, it's important that it doesn't pick up the nuspec file automatically, we have to explicitly specify it as an MSBuild argument.

dotnet pack -c Release /p:NuspecFile=MyCustomStyleCopAnalyzerPackage.nuspec

About

Example of package distributing custom StyleCopAnalyzer rules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages