Skip to content

ReferenceNuGetPackagesOnly

Andrey Lipatkin edited this page Jun 24, 2015 · 5 revisions

What this rule is about?

TODO

Why should I enable this rule?

TODO

How to enable/configure this rule

<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>