-
Notifications
You must be signed in to change notification settings - Fork 3
NuGetMandatoryPackage
Andrey Lipatkin edited this page Mar 25, 2017
·
1 revision
This verification fails if some project does not reference mandatory NuGet package - e.g. Roslyn Analyzer.
Control and consistency.
<Rules>
...
<NuGetMandatoryPackage enabled="false">
<!--This package must be referenced in all projects-->
<Package id="mandatory-package-id" />
<!--SomeProject.csproj does not have to reference mandatory packages-->
<Exception>
<Project>SomeProject.csproj</Project>
</Exception>
</NuGetMandatoryPackage>
...
</Rules>- Basic Rules
- FilesIncludedIntoProject
- SameNameForAssemblyAndRootNamespace
- SuppressWarnings
- TargetFrameworkProfile
- TargetFrameworkVersion
- TreatWarningsAsErrors
- WarningLevel
- NuGet Rules
- NuGetAutomaticPackagesRestore
- NuGetPackagesUsage
- NuGetPackageVersions
- ReferenceNuGetPackagesOnly
- SameNuGetPackageVersions
- StyleCop Rules
- StyleCopEnabled
- TreatStyleCopWarningsAsErrors