Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build errors AppData\Local\Temp\TFSTemp

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?

like image 360
Dhanuka777 Avatar asked Dec 30 '13 06:12

Dhanuka777


1 Answers

This worked for me:

  1. 'Clean' solution
  2. Close Visual Studio
  3. Delete the entire .../TFSTemp folder
  4. Get latest sources recursive
  5. Reopen solution and rebuild all.
like image 129
Iain Ballard Avatar answered Oct 19 '22 05:10

Iain Ballard