Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Adds reference to bin folder when no-one is referencing a nuget package #17

@citizenmatt

Description

@citizenmatt
  1. Given a solution with a single project which has a nuget package installed
  2. Build the project
  3. Remove the reference. The dll is still in the bin dir
  4. Close and reopen the solution
  5. Alt+Enter on the invalid code will offer to add a reference to the dll in the bin dir

Since no-one else is referencing the package, ReSharper doesn't know about the dll in the package dir, even though it's "installed" in the project. Instead, it only knows about the dll in the bin dir. The plugin doesn't join the dots to know that there is a dll in the package that would help.

Possible solutions:

  • Tell ReSharper about the dlls in packages - this would presumably require knowing how NuGet resolves the target framework folder, especially for PCL references
  • Deny adding a reference to a dll in a bin folder. This feels more like a fix that ReSharper should handle itself. Also, the interface doesn't really support denying adding a reference. We can (and do) fudge it though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions