Visual Studio shows warning in vctmp file : <p>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:</p>

<pre><code>#warning expand for all properties
</code></pre>

<p>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 <code>vctmp2984_94722.cs</code>. 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</p>

<p>Does anybody nows how to solve this?</p>
