Litee / SolutionCop

Tool for static analysis of Visual Studio solutions
Apache License 2.0
23 stars 3 forks source link

Check, that all references from the packages folder exists in packages.config file #18

Closed imanushin closed 8 years ago

imanushin commented 8 years ago

Steps to reproduce:

  1. Create two projects.
  2. Install package Jetbrains.Annotations 9.0 to the first
  3. Reference file Jetbrains.Annotations.dll from the second project direct from the packages folder.
  4. Update nuget reference Jetbrains.Annotations in all projects, which have it (e.g. only first project will update the package)
  5. Second project will reference to nonexistent file

So, it is better to have rule, which will prevent referencing from packages folder without package installation.

Litee commented 8 years ago

There is such check, but it was ignored when there is no packages.config file. Now fixed.