Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio shows warning in vctmp file

I have a C# project opened in visual studio. We are using TFS to manage our projects. In one source code file of the project I have configured a warning in the following way:

#warning expand for all properties

When I compile my project the warning is shown in the error list twice. Once in the original file, and once in a file called vctmp2984_94722.cs. I can open the temporary file in visual studio and it has a previous state of the file. Opening the file in explorer is not possible, cause the path of the temporary file points to a place that does not exist: C:\Users\developer\AppData\Local\Temp\TFSTemp\vctmp2984_94722.cs

Does anybody nows how to solve this?

like image 996
scher Avatar asked Sep 21 '16 07:09

scher


Video Answer


1 Answers

Did you have a "compare" running (with the "Diff - xxx") window open when you kicked off your build? I noticed that I was getting this---a ton of vctmp errors in a project called "Miscellaneous Files", but when I closed the Diff window they all disappeared.

like image 137
BeckyS Avatar answered Sep 20 '22 18:09

BeckyS