Hx_NetValidate
This target verifies that every file satisfies all the regular expressions specified in its metadata. This is useful to verify that projects reference specific packages, or projects contain specific MSBuild properties, or any custom file contains required content.
Properties
Hx_NetValidate_RegExpOptions
Regular expression options to use when executing validation for each @Hx_NetValidate_Files.
Items
Hx_NetValidate_Files
The list of files with regular expressions defined as metadata (metadata keys can be named in a free form) to validate. Defaults are project files, which must have the following packages: codecracker.CSharp, Microsoft.CodeAnalysis.NetAnalyzers, SecurityCodeScan.VS2019, SonarAnalyzer.CSharp, StyleCop.Analyzers.