ReferenceNuGetPackagesOnly
Andrey Lipatkin edited this page Jun 24, 2015
·
5 revisions
TODO
TODO
<Rules>
...
<ReferenceNuGetPackagesOnly enabled="true">
<Exception>
<!-- Any non-NuGet reference within the project will be ignored -->
<Project>ProjectToExcludeFromCheck.csproj</Project>
</Exception>
<Exception>
<!-- Any non-NuGet references to specific file will be ignored -->
<Assembly>MySpecial.dll</Assembly>
</Exception>
<Exception>
<!-- Only non-NuGet reference to specific file within specific project will be ignored -->
<Project>ProjectToExcludeFromCheck.csproj</Project>
<Assembly>MySpecial.dll</Assembly>
</Exception>
</ReferenceNuGetPackagesOnly>
...
</Rules>
- Basic Rules
- FilesIncludedIntoProject
- SameNameForAssemblyAndRootNamespace
- SuppressWarnings
- TargetFrameworkProfile
- TargetFrameworkVersion
- TreatWarningsAsErrors
- WarningLevel
- NuGet Rules
- NuGetAutomaticPackagesRestore
- NuGetPackagesUsage
- NuGetPackageVersions
- ReferenceNuGetPackagesOnly
- SameNuGetPackageVersions
- StyleCop Rules
- StyleCopEnabled
- TreatStyleCopWarningsAsErrors