StyleCop.MSBuild 5.0.0

Integrates source code analysis into the build process of C# projects to enforce a set of style and consistency rules.

Install-Package StyleCop.MSBuild -Version 5.0.0
dotnet add package StyleCop.MSBuild --version 5.0.0
paket add StyleCop.MSBuild --version 5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

* Added parser support for property ref returns
* Fixed the line numbers reported for violations within verbatim interpolated strings
* Fixed a false positive of SA1502 for expression bodied properties that contain object/collection initializers
* Fixed the parsing of catch statements with exception filters
* Fixed a bug when trying to open included XML documentation files on case-sensitive filesystems
* Fixed a bug where the StyleCop extension would not be properly removed

For 5.0.0-beta02:
* Fixed the parsing of backslashes in multi-line interpolated string literals (GitHub issue #88)
* Fixed the name of the default settings file included in the VSIX (changed from DefaultSettings.StyleCop to Settings.StyleCop)
* Changed SA1202 to be more permissive with dependency properties (GitHub issue #51)
* Added parser support for pattern matching (GitHub issue #106)
* Added parser support for throw expressions (GitHub issue #92)
* Added parser support for binary literals and digit separators (GitHub issue #94)
* Added parser support for ref returns and ref locals
* Added parser support for local functions
* Added parser support for tuple types and tuple literals
* Added parser support for deconstruction

For 5.0.0-beta01:
* Renamed SA1216:NoValueFirstComparison to SA1131:UseReadableConditions to match the StyleCopAnalyzers project (CodePlex issue #7737)
* Renamed SA1217:UsingStaticDirectivesMustBePlacedAfterUsingNamespaceDirectives to SA1216:UsingStaticDirectivesMustBePlacedAtTheCorrectLocation to match the StyleCopAnalyzers project (CodePlex issue #7738)
* Fixed a potential IndexOutOfRangeException when parsing newline characters near a ternary operator (CodePlex issues #7748, #7743, #7742)
* Modified CurlyBracketsForMultiLineStatementsMustNotShareLine to allow object and collection initializers on a single line within a multi-line lambda.
* Documentation of all <exception> elements is now checked, instead of just the first one (CodePlex issue #7731)
* Fixed parsing of fields or method parameters with a type similar to int?, (CodePlex issue #7729)
* Stopped reporting SA1648:InheritDocMustBeUsedWithInheritingClass if the documentation includes a cref attribute (CodePlex issue #7488)
* Included preferred alternate spellings when spellchecking (CodePlex issue #7733)
* Documentation rules are no longer checked if an <exclude/> tag is present (CodePlex issue #7732)
* Added support for Office 2013 and 2016 (including click-to-run installations) to SpellChecker.

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
5.0.0 (current version) 19,339 7/29/2017
5.0.0-beta02 5,832 4/30/2017
5.0.0-beta01 7,926 12/10/2016
5.0.0-alpha01 2,287 10/18/2016
4.7.55 139,175 11/11/2016
4.7.54 140,988 5/14/2016
4.7.53 31,151 5/2/2016
4.7.52 6,632 4/21/2016
4.7.51 9,173 4/4/2016
4.7.50 44,927 2/5/2016
4.7.49.1 212,381 1/30/2015
4.7.49 314,988 4/1/2014
4.7.48.2 20,925 2/19/2014
4.7.48 49,302 1/2/2014
4.7.47 17,320 11/25/2013
4.7.46.1 5,048 11/9/2013
4.7.46 10,746 9/26/2013
4.7.45 14,115 8/2/2013
4.7.44.1 21,619 1/14/2013
4.7.42.1 6,525 11/17/2012
4.7.41 5,158 10/10/2012
4.7.40 7,152 9/30/2012
4.7.38 8,359 9/22/2012
4.7.37 762 9/15/2012
4.7.36.1 268 9/13/2012
4.7.36 396 9/11/2012
4.7.35 6,244 7/26/2012
4.7.34 7,306 7/9/2012
4.7.33 2,055 6/30/2012
4.7.32 524 6/28/2012
4.7.31.2 329 6/22/2012
4.7.31.1 450 6/16/2012
4.7.31 373 6/11/2012
4.7.30 346 6/7/2012
4.7.28 373 6/4/2012
4.7.27 313 5/29/2012
4.7.26.6 232 5/27/2012
4.7.25 278 5/24/2012
4.7.24 328 5/21/2012
4.7.23 501 5/17/2012
4.7.19 420 5/5/2012
4.7.18 364 5/1/2012
4.7.17.1 1,176 4/17/2012
4.7.17 383 3/23/2012
4.7.14 448 3/16/2012