This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
6 Replies Last post: Feb 4, 2013 10:21 AM by Alex Berezoutsky  
Andre Dobroskok Newbie 4 posts since
Jan 28, 2013
Currently Being Moderated

Jan 28, 2013 4:19 AM

ReSharper 7.1 is not recognizing Razor in MVC 4 VS2012

Hi,

 

I have MVC4 project which I created with VS2010 and ReSharper 6. All Razor files were successfully parsed/recognized by ReSharper and I had full intellisense inside them, i.e. properties of the "Model" object, navigation to actions in controllers, etc.

However after updating to VS2012 with ReSharper 7.1 all Razor bits are highlighted in red and if I hover them I get "Cannot resolve symbol 'Model'" (or 'Html' for @Html, etc).

What would cause this?

 

Thanks.

Andre.

Alex Berezoutsky JetBrains 449 posts since
Feb 18, 2011
Currently Being Moderated
Jan 28, 2013 3:10 PM in response to: Andre Dobroskok
Re: ReSharper 7.1 is not recognizing Razor in MVC 4 VS2012

Hi Andre,

 

Is it the same project working in VS2010 and non-working (in terms of resolving symbols) in VS2012?

Have you tried to clear the caches in ReSharper | Options | Environment | General dialog?

 

Thanks.

Alex Berezoutsky JetBrains 449 posts since
Feb 18, 2011
Currently Being Moderated
Jan 29, 2013 12:30 PM in response to: Andre Dobroskok
Re: ReSharper 7.1 is not recognizing Razor in MVC 4 VS2012

Hello Andre,

 

Thanks for the info.

There's some more things to check:

1) Could you please specify the exact ReSharper version you use (ReSharper | Help | About JetBrains ReSharper)?

2) Could you please check if it affects all MVC4 solutions - please try to create new solution and check if symbols are resolved there fine.

 

Please let me know the results.

Thank you.

Alex Berezoutsky JetBrains 449 posts since
Feb 18, 2011
Currently Being Moderated
Feb 4, 2013 10:21 AM in response to: Andre Dobroskok
Re: ReSharper 7.1 is not recognizing Razor in MVC 4 VS2012

Hello Andre,

 

Thanks for the information!

We were thinking about some migration issues here since you told us about upgrading from VS2010 to VS2012, but haven't thought about MVC3 to MVC4 yet. Thanks again for the description and it's great that it's now working fine for you!

More Like This

  • Retrieving data ...