12

In Visual Studio 2012, I tried to do some search in: Find in Files->Entire Solution, then I get quite a lot results from files in C:\Uses\myusername\AppData\Local\Temp\ . The files take the name like tmpE11.tmp.cs or tmpFBEE.tmp.cpp, the contents are identical to some of the files in my solution.

My guess is that it is caused or auto-generated by some crashes, but why are they reachable by the search? I doubt if I can simply delete them or not.

  • This is so ridiculous, it is still not fixed after 9 years, and feedback-hub mentions are simply closed by Microsoft. I have this behavior in each and every visual studio release ever since! – thewhiteambit Nov 29 '21 at 01:32
  • Still coming back to this problem after another two years. There has been an attempt to report the problem to MS. But because their policy of asking for user feedback and then completely ignoring it, the ticket has been closed because of "missing information" (while they have everything they need to know). Being closed, this problem does not even allow voting for it anymore, what is extremely stupid. https://developercommunity.visualstudio.com/t/find-in-files-returns-results-from-cusersmynameapp/590770 – thewhiteambit Jun 21 '23 at 10:37

2 Answers2

8

Maybe this is related to a bug reported, where lots of tmp files created and are then included in the Find Results. If I clear the 'Miscellaneous Files Folder' the search does not include the temporary files.

To display the 'Miscellaneous Files Folder' (see https://msdn.microsoft.com/en-us/library/36bhtx7w.aspx):

  1. List item
  2. On the Tools menu, click Options.
  3. In the Options dialog box, expand the Environment node and select Documents.
  4. Select Show miscellaneous files in Solution Explorer.
  5. Specify the number of documents you want to appear in the folder.

In Visual Studio 2013 you can limit the contents to 0 which effectively prevent inclusion.

Matt
  • 74,352
  • 26
  • 153
  • 180
gast128
  • 1,223
  • 12
  • 22
  • 2
    I have no idea about Visual Studio, but it seem that this isn't an answer to this question, but rather a comment that you're having the same problem. You can add a bounty on this question if you want to give some incentive for it to be solved. – Artjom B. Jun 26 '15 at 15:43
  • 2
    This is an answer to his question. Do you experience the same problem and have you tried my solution? – gast128 Jun 27 '15 at 19:42
  • 1
    This worked for Visual Studio 2017 to display the folder in the solution that had all these temp files in it. Then I just selected the temp files in the solution explorer and deleted them. Solved the issue for me of all these temp files (located in appdata/local/temp) showing up in the results of doing a global search of the solution. – RonC Sep 11 '17 at 13:24
  • The problem remains after trying what you suggested. This seems to have nothing to do with it. – thewhiteambit Jun 21 '23 at 10:35
0

Check if you have a diff window opened. I got the same before closing the diff window.

danpop
  • 967
  • 13
  • 25