3

i just switched from vs2010 to vs2012, and installed t4mvc. now. all my links are stop working.

return RedirectToAction(MVC.Admin.Food.AdminAdded());

I will get cannot resolve symbol MVC.

@Links.Content.images.btn_save_changes_png

I will get cannot resolve symbol Links.

i have no idea how to fix it, pleaes help me, thank you.

qinking126
  • 11,385
  • 25
  • 74
  • 124

2 Answers2

1

Can you make sure that T4MVC is generating its files? Try right clicking the .tt file and choosing 'Run Custom Tool', which should force the generation.

If the files are generated, you should be able to look at them to make sense of why they don't match your references.

David Ebbo
  • 42,443
  • 8
  • 103
  • 117
  • I didnt do exactly what you told me to do. instead I have to uninstall then reinstall the T4MVC, then it regenerates those files again. oh,I have to delete those old generated files first. – qinking126 Mar 07 '13 at 20:35
0

try clearing the VS caches and update to the latest build of ReSharper.

the caches are located at

C:\Documents and Settings\Administrator\Local Settings\Temp\VWDWebCache

and possibly here

C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\WebsiteCache

REF:How do you clear your Visual Studio cache on Windows Vista?

Below are listed some helpful links:

MVC 3 Project Upgrade Tool

May be its a KNOWN ISSUE which has been RESOLVED

Community
  • 1
  • 1
Dakait
  • 2,531
  • 1
  • 25
  • 43