Why Resharper does not recognize referenced project in Unit Test

Andre Figueiredo

I'm facing this issue with Resharper in a Unit Test Project class.

It does not recognize my referenced main project (and also all its objects) arguing:

Cannot resolve symbol "[Project Namespace]"
Using directive is not required by the code and it can be safetly removed

Resharper problem

I could disable this feature in options by it works nice in a common project, this problem only happens in my Unit Test Project, as far as I could see.

Lasse V. Karlsen

This is usually a sign of the ReSharper cache going stale or out of touch with the solution. I've experienced it a lot with the 7.x version of ReSharper, and I've yet to experience it with 8.x so it might be a bug they've fixed.

Anyway, to fix it, go to the ReSharper options, under Environment and General, and find the cache settings near the bottom:

ReSharper cache settings

Click the Clear Caches button and then reload your solution. Problem should be fixed now.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to figure out why ReSharper is not rebuilding unit test project before running?

From Dev

How to figure out why ReSharper is not rebuilding unit test project before running?

From Dev

How to ignore entire unit test project using NUnit and ReSharper

From Dev

Why does the ReSharper 8 test runner crash on this spec?

From Dev

Resharper 10: Unit test output window is broken

From Dev

ReSharper Unit Test not run in bin directory

From Dev

DotCover fails unit test that pass in Resharper

From Dev

Unit test ReSharper and NUnit give different results

From Dev

Azure unit test fails in MSTest but passes in Resharper

From Dev

DotCover fails unit test that pass in Resharper

From Dev

mvn test does not run unit tests in springboot project

From Dev

Why doesn't the compiler recognize "exports" when I convert a unit into a standalone project?

From Dev

Unit test can't recognize sessions

From Dev

Why does the Task.ContinueWith fail to execute in this Unit Test?

From Dev

why my failing Ruby Unit Test does not fail?

From Dev

Why does this async unit test block the thread forever?

From Dev

Why does my Interceptor Fail in a Weld SE unit test?

From Dev

Why does my unit test fail when I refactor

From Dev

Junit 4 does not recognize test

From Dev

Junit 4 does not recognize test

From Dev

How does Robolectric work? Why does my unit test download some jars while first run Unit Test?

From Dev

Unit test large Qt project

From Dev

Unit test class for Swift project

From Dev

How to unit test a vsix project?

From Dev

SetupFixture does not allow grouped test runs in Resharper

From Dev

Why does this UITapGestureRecognizer not recognize taps?

From Dev

Why does Glassfish not recognize the jar?

From Dev

Why does ptrace not recognize the function?

From Dev

Update: Passing HttpContext and IPrincipal to Controler in ReSharper unit test

Related Related

  1. 1

    How to figure out why ReSharper is not rebuilding unit test project before running?

  2. 2

    How to figure out why ReSharper is not rebuilding unit test project before running?

  3. 3

    How to ignore entire unit test project using NUnit and ReSharper

  4. 4

    Why does the ReSharper 8 test runner crash on this spec?

  5. 5

    Resharper 10: Unit test output window is broken

  6. 6

    ReSharper Unit Test not run in bin directory

  7. 7

    DotCover fails unit test that pass in Resharper

  8. 8

    Unit test ReSharper and NUnit give different results

  9. 9

    Azure unit test fails in MSTest but passes in Resharper

  10. 10

    DotCover fails unit test that pass in Resharper

  11. 11

    mvn test does not run unit tests in springboot project

  12. 12

    Why doesn't the compiler recognize "exports" when I convert a unit into a standalone project?

  13. 13

    Unit test can't recognize sessions

  14. 14

    Why does the Task.ContinueWith fail to execute in this Unit Test?

  15. 15

    why my failing Ruby Unit Test does not fail?

  16. 16

    Why does this async unit test block the thread forever?

  17. 17

    Why does my Interceptor Fail in a Weld SE unit test?

  18. 18

    Why does my unit test fail when I refactor

  19. 19

    Junit 4 does not recognize test

  20. 20

    Junit 4 does not recognize test

  21. 21

    How does Robolectric work? Why does my unit test download some jars while first run Unit Test?

  22. 22

    Unit test large Qt project

  23. 23

    Unit test class for Swift project

  24. 24

    How to unit test a vsix project?

  25. 25

    SetupFixture does not allow grouped test runs in Resharper

  26. 26

    Why does this UITapGestureRecognizer not recognize taps?

  27. 27

    Why does Glassfish not recognize the jar?

  28. 28

    Why does ptrace not recognize the function?

  29. 29

    Update: Passing HttpContext and IPrincipal to Controler in ReSharper unit test

HotTag

Archive