2

I have an ASP.NET MVC 3 solution where some Views (and Controllers) are located in separate assembly (later on they are loaded via MEF). This separate assembly is a Class Library project (a .dll) and the ReSharper can't resolve the Views from inside the controller (even if the View exists it shows it with Red color inside the Controller).

Any ideas?

I am using Build 6.0.2202.688 on 2011-06-29T18:14:16

Nikos Baxevanis
  • 10,868
  • 2
  • 46
  • 80

2 Answers2

1

After reading this post it seems that everything work fine now. (The problem doesn't seem to be related with ReSharper.)

Nikos Baxevanis
  • 10,868
  • 2
  • 46
  • 80
0

Views project must reference controllers project.

derigel
  • 3,218
  • 2
  • 19
  • 31
  • Views and Controllers are on same project but not a web project - a .dll instead (which we then load via mef into main web project). – Nikos Baxevanis Sep 08 '11 at 13:28
  • You mean you have third project which references two others, one with views, another with controllers? Anyway, views project must reference controllers' one - then ReSharper will resolve view references. – derigel Sep 08 '11 at 19:02
  • 1
    Everything is inside a .dll (together with Views and Controllers). – Nikos Baxevanis Sep 09 '11 at 10:58