Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top