Build errors AppData\Local\Temp\TFSTemp

Viewed 6828

When I build my ASP.NET MVC application (VS2013, .net 4.5.1), I am getting these errors.

I have re factored "login.cshtml" by removing complete mark up and did it again. Now I am getting following build errors (red errors). But the build status is "Build Succeed" and application works fine.

So this is specific to my local machine.

Error   21  The name 'RenderBody' does not exist in the current context c:\Users\....\AppData\Local\Temp\TFSTemp\vctmp6480_135776.cshtml    61  34  Miscellaneous Files

Error   20  The name 'Scripts' does not exist in the current context    c:\Users\...\AppData\Local\Temp\TFSTemp\vctmp6480_135776.cshtml 34  6   Miscellaneous Files

Error   17  The name 'Styles' does not exist in the current context c:\Users\....\AppData\Local\Temp\TFSTemp\vctmp6480_135776.cshtml    20  6   Miscellaneous Files

I have cleaned up the c:\Users\....\AppData\Local\Temp\TFSTemp folder. I still get the issue. Any ideas?

1 Answers
Related